Skip to content

rmathew8-gh/minimal-pytest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This code works correctly in:

  • emacs: M-x python-pytest-dispatch
  • shell: pytest
  • vscode: discover tests correctly (python plugin)

Code structure:

This structure keeps tests discoverable.

pwgen/
├── add.py:
    > def add(a, b): 
    >     return a + b
├── __init__.py
    > pass
└── tests/
    ├── __init__.py
        > pass
    ├── test_add.py
        > from pwgen import add
        > def test_df():
        >     assert add.add(1, 2) == 3

For watch mode:

pip install pytest-watch
ptw

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages