@pytest.mark.django_db
def test_store_create_name_with_slashes_or_backslashes(tp0):
 with pytest.raises(ValidationError):
  Store.objects.create(name='slashed/name.po', parent=tp0.directory, translation_project=tp0)
 with pytest.raises(ValidationError):
  Store.objects.create(name='backslashed\\name.po', parent=tp0.directory, translation_project=tp0)

@ pytest . mark . django_db def test_store_create_name_with_slashes_or_backslashes ( tp0 ) : with pytest . raises ( ValidationError ) : Store . objects . create ( name = 'slashed/name.po' , parent = tp0 . directory , translation_project = tp0 ) with pytest . raises ( ValidationError ) : Store . objects . create ( name = 'backslashed\\name.po' , parent = tp0 . directory , translation_project = tp0 )
test stores are not created with slashes on their name .