Skip to content

Code-Retreat-Russia/coding-dojo-python

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

Template Python project for Coding Dojo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages