Loading templates_tests/python_setup/README.md 0 → 100644 +3 −0 Original line number Diff line number Diff line # python project Mock up python project to be used in testing a setup.py package. templates_tests/python_setup/mypackage/__init__.py 0 → 100644 +3 −0 Original line number Diff line number Diff line """ Well well, what to write here? """ templates_tests/python_setup/mypackage/mymodule.py 0 → 100644 +20 −0 Original line number Diff line number Diff line """ This module is quite excellent for any number of testing purposes. """ def myfunction(variable: int) -> int: """this function is very useful""" return variable * 3 + 2 def myotherfunction(variable: int) -> int: """this function is even more useful""" return variable - 1 def too_complicated() -> None: """this function will increase code complexity""" for i in range(1000): print("was this really necessary??") print("I guess it was") templates_tests/python_setup/setup.py 0 → 100644 +3 −0 Original line number Diff line number Diff line from setuptools import setup setup(name="mypackage", version="1.0.0") templates_tests/python_setup/tests/test_mymodule.py 0 → 100644 +10 −0 Original line number Diff line number Diff line """ I can even make docstrings here! I'm awesome. """ from mypackage import mymodule def test_myfunction(): """Testing always makes me joyful.""" assert mymodule.myfunction(variable=3) == 11 Loading
templates_tests/python_setup/README.md 0 → 100644 +3 −0 Original line number Diff line number Diff line # python project Mock up python project to be used in testing a setup.py package.
templates_tests/python_setup/mypackage/__init__.py 0 → 100644 +3 −0 Original line number Diff line number Diff line """ Well well, what to write here? """
templates_tests/python_setup/mypackage/mymodule.py 0 → 100644 +20 −0 Original line number Diff line number Diff line """ This module is quite excellent for any number of testing purposes. """ def myfunction(variable: int) -> int: """this function is very useful""" return variable * 3 + 2 def myotherfunction(variable: int) -> int: """this function is even more useful""" return variable - 1 def too_complicated() -> None: """this function will increase code complexity""" for i in range(1000): print("was this really necessary??") print("I guess it was")
templates_tests/python_setup/setup.py 0 → 100644 +3 −0 Original line number Diff line number Diff line from setuptools import setup setup(name="mypackage", version="1.0.0")
templates_tests/python_setup/tests/test_mymodule.py 0 → 100644 +10 −0 Original line number Diff line number Diff line """ I can even make docstrings here! I'm awesome. """ from mypackage import mymodule def test_myfunction(): """Testing always makes me joyful.""" assert mymodule.myfunction(variable=3) == 11