Commit a30b22ff authored by Michal Čihař's avatar Michal Čihař

Need to invalidate cache here now

parent 72baffbd
......@@ -183,6 +183,7 @@ class ProjectTest(RepoTestCase):
def test_create(self):
project = self.create_project()
self.assertTrue(os.path.exists(project.get_path()))
self.assertTrue(project.slug in project.get_path())
def test_rename(self):
project = self.create_project()
......@@ -211,6 +212,9 @@ class ProjectTest(RepoTestCase):
backup = appsettings.GIT_ROOT
appsettings.GIT_ROOT = '/weblate-nonexisting-path'
# Invalidate cache
project._dir_path = None
self.assertRaisesMessage(
ValidationError,
'Could not create project directory',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment