mirror of
https://github.com/lucaspalomodevelop/Party.git
synced 2026-03-13 00:07:21 +00:00
mate kiste tests
This commit is contained in:
parent
58713a71d9
commit
a7a6451506
@ -1,4 +1,5 @@
|
||||
from tests import client, app
|
||||
from tests import client, app, mateKiste
|
||||
from party import MateMarke
|
||||
|
||||
class TestMate:
|
||||
def test_api_mate(self, client):
|
||||
@ -12,3 +13,16 @@ class TestMate:
|
||||
def test_api_mate_trinken(self, client):
|
||||
response = client.post("/api/mate/trinken")
|
||||
assert response.status_code == 200
|
||||
|
||||
def test_eineTrinken(self, mateKiste):
|
||||
mateKiste.eineTrinken()
|
||||
assert mateKiste.getFlaschenAnzahl() == 19
|
||||
|
||||
def test_getFlaschenAnzahl(self, mateKiste):
|
||||
assert mateKiste.getFlaschenAnzahl() == 20
|
||||
|
||||
def test_getMarke(self, mateKiste):
|
||||
assert mateKiste.getMarke() == MateMarke.ClubMate
|
||||
|
||||
def test_getMarkeName(self, mateKiste):
|
||||
assert mateKiste.getMarkeName() == "Club Mate"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user