Skip to content

Commit

Permalink
Update files for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
corentinlger committed Jan 23, 2024
1 parent 68b4ee3 commit 12f16c3
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install black
pip install pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with black
run: |
Expand Down
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ black==23.12.1
click==8.1.7
contourpy==1.2.0
cycler==0.12.1
exceptiongroup==1.2.0
fonttools==4.47.2
hydra-core==1.3.2
iniconfig==2.0.0
jax==0.4.23
jaxlib==0.4.23
kiwisolver==1.4.5
Expand All @@ -18,10 +20,12 @@ packaging==23.2
pathspec==0.12.1
pillow==10.2.0
platformdirs==4.1.0
pluggy==1.3.0
pyparsing==3.1.1
PyQt5==5.15.10
PyQt5-Qt5==5.15.2
PyQt5-sip==12.13.0
pytest==7.4.4
python-dateutil==2.8.2
PyYAML==6.0.1
scipy==1.12.0
Expand Down
File renamed without changes.
14 changes: 14 additions & 0 deletions test_pytest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# test_assert_examples.py

def test_uppercase():
assert "loud noises".upper() == "LOUD NOISES"

def test_reversed():
assert list(reversed([1, 2, 3, 4])) == [4, 3, 2, 1]

def test_some_primes():
assert 37 in {
num
for num in range(2, 50)
if not any(num % div == 0 for div in range(2, num))
}

0 comments on commit 12f16c3

Please sign in to comment.