Skip to content

Commit 83df488

Browse files
rearrange: oraganize
1 parent ad9c444 commit 83df488

8 files changed

Lines changed: 97 additions & 20 deletions

File tree

pytest_tut/poetry.lock

Lines changed: 86 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pytest_tut/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ readme = "README.md"
88
[tool.poetry.dependencies]
99
python = "^3.10"
1010
pytest = "^7.4.2"
11+
pytest-cov = "^4.1.0"
1112

1213

1314
[build-system]

pytest_tut/pytest_tut/__init__.py

Whitespace-only changes.

pytest_tut/pytest_tut/functions.py

Lines changed: 0 additions & 8 deletions
This file was deleted.

pytest_tut/src/functions.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
def increate_value(value:int, by=5):
2-
"""Increments the value
3-
Args:
4-
value (int): The value to increment
5-
"""
6-
return value + 5
7-
8-
1+
def increase_value(value:int, by_value:int=5) -> int:
2+
'''function to increase the value
3+
args:
4+
value (int): value
5+
by_value (int): to increase the value by
6+
'''
7+
return value + by_value

pytest_tut/test_functions copy.py renamed to pytest_tut/tests/test_functions _basics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
from src import functions
33

44
def test_main():
5-
assert 15 == functions.increate_value(10)
5+
assert 15 == functions.increase_value(10)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from pytest_tut.functions import increase_value
1+
from src.functions import increase_value
22
import pytest
33

44
def test_increment_value_function_simple():
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
@pytest.mark.first_version
55
def test_functions():
6-
assert 15 == functions.increate_value(value=10)
6+
assert 15 == functions.increase_value(value=10)

0 commit comments

Comments
 (0)