Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Empty project for kata

only pytest in deps

Install Python (on Ubuntu)

sudo apt install python3 python3-venv

How to setup environment

python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt

Run tests

pytest

Tips

Parametrized tests

@pytest.mark.parametrize("test_input, expected", [
    ("Bob", "Hello, Bob.")
])
def test(test_input, expected):
    pass

How to handle exceptions

def test_zero_division_exception():
    with pytest.raises(ZeroDivisionError):
        1 / 0

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages