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

Uploaded Source

Built Distribution

ironpython_pytest-0.1.1-py2.py3-none-any.whl (7.0 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: ironpython-pytest-0.1.1.tar.gz
  • Upload date:
  • Size: 8.3 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.1.1.tar.gz
Algorithm Hash digest
SHA256 7b7f457bad1e51c74ed1a90c0d532c3b2f5c9c1a6926b1c95d45f0a4df53e778
MD5 6509f7686fa7f9f761d43002e6842236
BLAKE2b-256 5b7ddf6a4194f9da0b8c4f6688f1f2f334289ba6356ed085b32bc9519bf277c1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ironpython_pytest-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.0 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.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5cfea9fbc7627c51d1d3e983dad30af60051f2e9f2fa9c08dc48b8b915051151
MD5 c713bc8cfb69f637765566798856c0f8
BLAKE2b-256 e811fe0f02f277c3730287ce74c3c6f2a1d6f6707a32f15b4b1da29e2a891954

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