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.4.0.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

ironpython_pytest-0.4.0-py2.py3-none-any.whl (7.4 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: ironpython-pytest-0.4.0.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for ironpython-pytest-0.4.0.tar.gz
Algorithm Hash digest
SHA256 baa3735410aa3286009578a6421fcff36e14b07f72b55bfc1df92a68829fdd51
MD5 e9cf6c0824490a59a35a377e98dba150
BLAKE2b-256 c862e8f82d8be5fce6acc22d99b5d691608adcc62fd791ed6bec5c89f8fdce4f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ironpython_pytest-0.4.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for ironpython_pytest-0.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ad9174fc61bde593c0ab3ab824331931a5034e85f3df9f06e003b8129a13d770
MD5 a68ede920cb027cf4b3fa4391fae19f7
BLAKE2b-256 d121a5c8d5ca56a01cd61715a0177965f3ab724ef121b2a8c740ae7ceaf22199

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