@pytest.mark.django_db
def test_data_store_checks(tp0):
 store = StoreDBFactory(name='foo.po', parent=tp0.directory, translation_project=tp0)
 check_data = StoreChecksData.objects.create(store=store)
 assert (repr(check_data) == ('<StoreChecksData: %s>' % store.pootle_path))

@ pytest . mark . django_db def test_data_store_checks ( tp0 ) : store = StoreDBFactory ( name = 'foo.po' , parent = tp0 . directory , translation_project = tp0 ) check_data = StoreChecksData . objects . create ( store = store ) assert ( repr ( check_data ) == ( '<StoreChecksData: %s>' % store . pootle_path ) )
test that you cant add a duplicate file extension .