@pytest.mark.django_db
def test_data_tp_checks(english):
 tp = TranslationProjectFactory(project=ProjectDBFactory(source_language=english), language=LanguageDBFactory())
 check_data = TPChecksData.objects.create(tp=tp)
 assert (repr(check_data) == ('<TPChecksData: %s>' % tp.pootle_path))

@ pytest . mark . django_db def test_data_tp_checks ( english ) : tp = TranslationProjectFactory ( project = ProjectDBFactory ( source_language = english ) , language = LanguageDBFactory ( ) ) check_data = TPChecksData . objects . create ( tp = tp ) assert ( repr ( check_data ) == ( '<TPChecksData: %s>' % tp . pootle_path ) )
test that you cant add a duplicate file extension .