Skip to content

Commit 6a4d918

Browse files
committed
Refactor structure of modules, upgrading version class
1 parent 74aef76 commit 6a4d918

File tree

23 files changed

+254
-84
lines changed

23 files changed

+254
-84
lines changed

cache/cache/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .cache import Cache
File renamed without changes.

cache/pyproject.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,16 @@ authors = [
1111
]
1212
requires-python = ">=3.10"
1313

14+
[tool.setuptools.packages.find]
15+
include = [
16+
"cache"
17+
]
1418

1519
[tool.pytest.ini_options]
1620
minversion = "8.0"
1721
testpaths = [
18-
"."
22+
"tests"
1923
]
2024
python_files = [
21-
"tests.py"
25+
"*tests.py"
2226
]

cache/tests.py renamed to cache/tests/cache_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import time
22
from datetime import timedelta, datetime
3-
from cache import Cache
3+
from cache.cache import Cache
44
import pytest
55

66
def test_cache_expire_in_caches_result():

colors/colors/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .colors import Color

colors/pyproject.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@ authors = [
77
]
88
requires-python = ">=3.10"
99

10+
[tool.setuptools.packages.find]
11+
include = [
12+
"colors"
13+
]
1014

1115
[tool.pytest.ini_options]
1216
minversion = "8.0"
1317
testpaths = [
14-
"."
18+
"tests"
1519
]
1620
python_files = [
17-
"tests.py"
21+
"*tests.py"
1822
]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import pytest
2-
from colors import Color
2+
from colors.colors import Color
33

44
@pytest.mark.parametrize(
55
"hexa, expected, test_id",

config/config/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .config import BaseConfig, JSONConfig

0 commit comments

Comments
 (0)