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

Uploaded Source

Built Distribution

ironpython_pytest-0.3.1-py2.py3-none-any.whl (7.3 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: ironpython-pytest-0.3.1.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200917 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for ironpython-pytest-0.3.1.tar.gz
Algorithm Hash digest
SHA256 9562c6c2b721521fb202ed8dacdde9a888892849cee786e11841eabdd86c137d
MD5 eaff72e10e746d1bea0a3543ce7ade71
BLAKE2b-256 3d5da3aba0b846b0e478bc67a1bcd5fd2230bbe9556133a7cf1b5585b9ef9556

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ironpython_pytest-0.3.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200917 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for ironpython_pytest-0.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 949c485656f805103e3a52339e5447f25ef4b1981a6990a455330a027910ace6
MD5 2924691dc49aa383b44d91bd86764e88
BLAKE2b-256 dd6499d75f54cbc441ca40c9a0f0b147406876fa47f633733eb31ad9065ac0fc

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