Skip to content

Commit 4e1ce4b

Browse files
committed
WIP
1 parent 3a2f1be commit 4e1ce4b

17 files changed

+185
-1043
lines changed

.github/workflows/tests.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Tests
2+
on:
3+
push:
4+
branches: [ main ]
5+
pull_request:
6+
branches: [ main ]
7+
8+
jobs:
9+
tests:
10+
runs-on: ubuntu-20.04
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-python@v4
14+
with:
15+
python-version: "3.9.16"
16+
- name: Poetry
17+
run: |
18+
pip install poetry
19+
poetry install --no-interaction --no-root --with tests
20+
- name: Pytest
21+
run: |
22+
poetry run pytest

poetry.lock

Lines changed: 156 additions & 174 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ interrogate = "==1.7.0"
3131
[tool.poetry.group.tests.dependencies]
3232
pytest = "==7.3.1"
3333
pytest-cov = "==4.1.0"
34-
schema = "==0.7.5"
3534

3635
[tool.black]
3736
line-length = 120

tests/clubs/test_clubs_players.py

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

tests/clubs/test_clubs_profile.py

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

tests/clubs/test_clubs_search.py

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

tests/competitions/test_competitions_clubs.py

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

tests/competitions/test_competitions_search.py

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

tests/conftest.py

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +0,0 @@
1-
import pytest
2-
from schema import Regex
3-
4-
5-
@pytest.fixture
6-
def len_greater_than_0():
7-
return lambda x: len(x) > 0
8-
9-
10-
@pytest.fixture
11-
def len_equal_to_0():
12-
return lambda x: len(x) == 0
13-
14-
15-
@pytest.fixture
16-
def regex_club_url():
17-
return Regex(r"^/\w.+/startseite/verein/\d+$")
18-
19-
20-
@pytest.fixture
21-
def regex_date_mmm_dd_yyyy():
22-
return Regex(r"^(\w+\s\d+,\s\d+)|(-)$")
23-
24-
25-
@pytest.fixture
26-
def regex_market_value():
27-
return Regex(r"^(€\d+\.\d+.(m|bn))|(€\d+.k)|(-)$")
28-
29-
30-
@pytest.fixture
31-
def regex_value_variation():
32-
return Regex(r"^(\+|-)?€(\+|-)?(\d.+)(k|m)$")
33-
34-
35-
@pytest.fixture
36-
def regex_integer():
37-
return Regex(r"^(\d+|-)$")
38-
39-
40-
@pytest.fixture
41-
def regex_height():
42-
return Regex(r"^(\d+,\d+m)|(m)$")

tests/players/test_players_achievements.py

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

0 commit comments

Comments
 (0)