Skip to content

Commit f38f0bf

Browse files
committed
Remove test requirements
1 parent 326a5f6 commit f38f0bf

5 files changed

Lines changed: 38 additions & 22 deletions

File tree

.github/workflows/docs.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@ jobs:
1010
- uses: actions/setup-python@v2
1111
with:
1212
python-version: 3.x
13-
- run: cp README.md docs/index.md
1413
- run: pip install mkdocs-material
1514
- run: mkdocs gh-deploy --force

Makefile

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,28 @@
1-
export:
2-
poetry export -f requirements.txt -o requirements.txt --without-hashes
1+
install:
2+
poetry install
33

44
tests: install
55
poetry run flake8 . --count --show-source --statistics --max-line-length=88 --extend-ignore=E203
66
poetry run black . --check
77
poetry run isort . --profile=black
88
poetry run pytest --cov=./ --cov-report=xml
99

10-
install:
11-
poetry install
10+
export:
11+
poetry export -f requirements.txt -o requirements.txt
12+
13+
export_and_commit: export
14+
git config --global user.name 'leynier'
15+
git config --global user.email 'leynier41@gmail.com'
16+
git add requirements.txt
17+
git commit --allow-empty -m "Update requirements.txt"
18+
git push
19+
20+
update_index:
21+
cp README.md docs/index.md
22+
23+
update_index_and_commit: update_index
24+
git config --global user.name 'leynier'
25+
git config --global user.email 'leynier41@gmail.com'
26+
git add docs/index.md
27+
git commit --allow-empty -m "Update docs/index.md"
28+
git push

requirements.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1-
click==7.1.2; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6"
2-
typer==0.3.2; python_version >= "3.6"
1+
click==7.1.2; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version >= "3.6" \
2+
--hash=sha256:dacca89f4bfadd5de3d7489b7c8a566eee0d3676333fbb50030263894c38c0dc \
3+
--hash=sha256:d2b5255c7c6349bc1bd1e59e08cd12acbbd63ce649f2588755783aa94dfb6b1a
4+
typer==0.3.2; python_version >= "3.6" \
5+
--hash=sha256:ba58b920ce851b12a2d790143009fa00ac1d05b3ff3257061ff69dbdfc3d161b \
6+
--hash=sha256:5455d750122cff96745b0dec87368f56d023725a7ebc9d2e54dd23dc86816303

tests/test_requirements.py

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

tests/test_template.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from typer.testing import CliRunner
2+
3+
from template.main import app
4+
5+
runner = CliRunner()
6+
7+
8+
def test_template():
9+
result = runner.invoke(app)
10+
assert result.exit_code == 0
11+
assert "Hello World!" in result.stdout

0 commit comments

Comments
 (0)