Skip to content

Commit

Permalink
test: amélioration de la couverture du code
Browse files Browse the repository at this point in the history
  • Loading branch information
sblondon committed Jun 7, 2024
1 parent 4c01da3 commit 7e5a2fd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions impact/metabase/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,17 @@ def test_synchronise_une_entreprise_avec_un_utilisateur(
assert metabase_habilitation.fonctions == "Présidente"
assert not metabase_habilitation.confirmee_le

date_confirmation = datetime.now()
habilitation.confirmed_at = date_confirmation
habilitation.save()

Command().handle()

assert MetabaseHabilitation.objects.count() == 1
metabase_habilitation = MetabaseHabilitation.objects.first()

assert metabase_habilitation.confirmee_le.date() == date_confirmation.date()


@pytest.mark.django_db(transaction=True, databases=["default", METABASE_DATABASE_NAME])
def test_synchronise_les_reglementations_BDESE(
Expand Down

0 comments on commit 7e5a2fd

Please sign in to comment.