Skip to main content

Expand command-line shortcuts listed in pytest configuration

Project description

pytest-shortcuts

Expand command-line shortcuts listed in pytest configuration

This pytest plugin was generated with Cookiecutter along with @hackebrot's cookiecutter-pytest-plugin template.

Getting Started

Install using your favourite python package manager:

$ pip install pytest-shortcuts

Add some shortcuts to your pytest configuration:

[pytest]
shortcuts =
    --live: -m "live and not slow"
    --slow: -m "live and slow"
    --offline: --disable-socket -m "not live"

Now when you run your tests with eg --live, it will be as if you provided -m "live and not slow".

For each shortcut, you can also define a dotenv file to load with custom configuration:

[pytest]
shortcuts =
    --live: -m "live and not slow"
    --slow: -m "live and slow"
envfiles =
    --live: .live.env

License

Distributed under the terms of the BSD-3 license, "pytest-shortcuts" is free and open source software

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

pytest-shortcuts-0.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_shortcuts-0.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file pytest-shortcuts-0.1.0.tar.gz.

File metadata

  • Download URL: pytest-shortcuts-0.1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

File hashes

Hashes for pytest-shortcuts-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4ff3eed5ff3e04437d6204e2636f6c912691691b849c5e198dec6ee7b4e5c6c9
MD5 da9b4cdd26be37542b2316d614101771
BLAKE2b-256 7569fcc8b4f9e8cd68c389fe5f244bf30b6aef7f7f194bd73c7dd668d73c5264

See more details on using hashes here.

File details

Details for the file pytest_shortcuts-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pytest_shortcuts-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

File hashes

Hashes for pytest_shortcuts-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dc35df6e31c425154d77e6bb32010e31a0b3ddb184aacec85c4616806845bf95
MD5 52b6939f50f6761ae19118b9ce689961
BLAKE2b-256 d6179a149e0677dccdfdec9f49c7f680bf961bb14c0514968a1b8ace8f775f1d

See more details on using hashes here.

Supported by

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