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

Add testcase for handling symlinks within git (issue #298)

parent 5fc29407
......@@ -125,6 +125,12 @@ class RepoTestCase(TestCase):
'po/en.po',
)
def create_po_link(self):
return self._create_subproject(
'po',
'po-link/*.po',
)
def create_po_mono(self):
return self._create_subproject(
'po-mono',
......@@ -237,6 +243,12 @@ class SubProjectTest(RepoTestCase):
self.assertTrue(os.path.exists(project.get_path()))
self.assertEqual(project.translation_set.count(), 1)
def test_create_po_link(self):
project = self.create_po_link()
project.full_clean()
self.assertTrue(os.path.exists(project.get_path()))
self.assertEqual(project.translation_set.count(), 3)
def test_create_po_mono(self):
project = self.create_po_mono()
project.full_clean()
......
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