Skip to content

Commit

Permalink
fixed linting & formatting for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hotzenklotz committed Sep 29, 2020
1 parent 054a111 commit e046e9d
Show file tree
Hide file tree
Showing 3 changed files with 321 additions and 314 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ poetry install

Make sure to Test, Lint, Format, & Type-Check your code before sending a pull request:
```
python -m black pybeerxml tests
python -m pytest tests
python -m pylint pybeerxml tests
python -m mypy pybeerxml tests
python -m black pybeerxml tests/*.py
python -m pylint pybeerxml tests/*.py
python -m mypy pybeerxml tests/*.py
```

## License
Expand Down
5 changes: 3 additions & 2 deletions tests/test_fermentable.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import pytest
from pybeerxml.fermentable import Fermentable


Expand All @@ -7,12 +6,13 @@ def test_add_after_boil():
fermentable = Fermentable()
fermentable.add_after_boil = True

assert fermentable.add_after_boil == True
assert fermentable.add_after_boil # True


def test_ppg():

fermentable = Fermentable()
# pylint: disable=protected-access
fermentable._yield = 1

assert fermentable.ppg == 0.46214
Expand All @@ -35,6 +35,7 @@ def test_addition():
def test_gu():

fermentable = Fermentable()
# pylint: disable=protected-access
fermentable._yield = 1
fermentable.amount = 1 # kg

Expand Down
Loading

0 comments on commit e046e9d

Please sign in to comment.