Skip to content

Commit

Permalink
Test taxref populate
Browse files Browse the repository at this point in the history
  • Loading branch information
amandine-sahl authored and bouttier committed Nov 26, 2022
1 parent c0aef14 commit ac784c2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions apptax/tests/test_taxref_last_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import pytest

from apptax.taxonomie.models import Taxref, TaxrefBdcStatutText


@pytest.mark.usefixtures("client_class", "temporary_transaction")
class TestPopulateTaxref:
"""Test if taxref data are correctly populated"""

def test_count_taxref(self):
nb_taxref = Taxref.query.count()
assert nb_taxref == 657609

def test_count_bdc_status(self):
nb_bdc_texts = TaxrefBdcStatutText.query.count()
assert nb_bdc_texts == 873

0 comments on commit ac784c2

Please sign in to comment.