Skip to main content

Ridiculously minimal and incomplete pytest replacement for IronPython

Project description

ironpython-pytest

Version License

Ridiculously minimal and incomplete pytest replacement for IronPython.

This is not an attempt to fork pytest to IronPython (as the seemingly abandoned pytest-ironpython), instead it's intended to provide the bare minimum for a drop-in replacement of a subset of pytest conventions and framework required to run unit tests on IronPython.

It makes a ton of assumptions and has very little configurability.

Deal with it.

(••) ( ••)>⌐■-■ (⌐■_■)

Installation

ipy -X:Frames -m ensurepip
ipy -X:Frames -m pip install ironpython-pytest 

Usage

From the command line:

ipy -m pytest file_or_dir

Or programmatically:

import os

import pytest

if __name__ == '__main__':
    # Fake some modules
    pytest.load_fake_module('Rhino')
    pytest.load_fake_module('Rhino.Geometry', fake_types=['RTree', 'Sphere', 'Point3d'])

    pytest.run('project/test_dir/')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ironpython-pytest-0.2.1.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

ironpython_pytest-0.2.1-py2.py3-none-any.whl (7.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file ironpython-pytest-0.2.1.tar.gz.

File metadata

  • Download URL: ironpython-pytest-0.2.1.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200325 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for ironpython-pytest-0.2.1.tar.gz
Algorithm Hash digest
SHA256 d985d028e5bc1174cdaf68ea6ebe5337f9081737dad4d8dacec0b0b96bf4f0c7
MD5 04bf6af3aad9edc8ed7fb031116d5efa
BLAKE2b-256 cc8c4a53083926ba88461136577e2561cfb913eb5a8ac739c249fc90bc69fcd9

See more details on using hashes here.

File details

Details for the file ironpython_pytest-0.2.1-py2.py3-none-any.whl.

File metadata

  • Download URL: ironpython_pytest-0.2.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200325 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for ironpython_pytest-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 84563e9574cea2be5781dc3df005de96c3c4e5a6484aa14d527f45dfcae8d9a8
MD5 6a4952d0ded8dc5ffaa2059565029ab5
BLAKE2b-256 b967fdea7436e9aa16efad4754721fd39f5714176affc734f4dc20a79d66c27f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page