Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mpasternak committed Jul 26, 2020
1 parent bd902c6 commit 94287f0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/bpp/tests/test_selenium/test_admin/test_admin.py
Expand Up @@ -3,6 +3,8 @@

from flaky import flaky

from bpp.models.const import CHARAKTER_OGOLNY_KSIAZKA

try:
from django.core.urlresolvers import reverse
except ImportError:
Expand All @@ -18,6 +20,7 @@
Jednostka,
Typ_Odpowiedzialnosci,
TO_AUTOR,
Charakter_Formalny,
)
from bpp.models.patent import Patent
from bpp.models.wydawnictwo_zwarte import Wydawnictwo_Zwarte
Expand Down Expand Up @@ -310,7 +313,12 @@ def test_admin_wydawnictwo_zwarte_uzupelnij_rok(
lambda browser: browser.find_by_id("id_rok").value == "2002"
)

chf = Charakter_Formalny.objects.create(
nazwa="charakter", skrot="ch", charakter_ogolny=CHARAKTER_OGOLNY_KSIAZKA
)

wydawnictwo_zwarte.rok = 1997
wydawnictwo_zwarte.charakter_formalny = chf
wydawnictwo_zwarte.save()

select_select2_autocomplete(
Expand Down

0 comments on commit 94287f0

Please sign in to comment.