Commit 7a808661 authored by Michal Čihař's avatar Michal Čihař

Add tests for JSON file format (issue #488)

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 9d348061
......@@ -169,6 +169,12 @@ class RepoTestCase(TestCase):
'android/values/strings.xml',
)
def create_json(self):
return self._create_subproject(
'json',
'json/*.json',
)
def create_java(self):
return self._create_subproject(
'properties',
......@@ -413,6 +419,10 @@ class SubProjectTest(RepoTestCase):
project = self.create_android()
self.verify_subproject(project, 1, 'cs', 4)
def test_create_json(self):
project = self.create_json()
self.verify_subproject(project, 1, 'cs', 4)
def test_create_java(self):
project = self.create_java()
self.verify_subproject(project, 2, 'cs', 4)
......
......@@ -323,6 +323,11 @@ class BasicIphoneViewTest(BasicViewTest):
return self.create_iphone()
class BasicJSONViewTest(BasicViewTest):
def create_subproject(self):
return self.create_json()
class BasicJavaViewTest(BasicViewTest):
def create_subproject(self):
return self.create_java()
......@@ -666,6 +671,13 @@ class EditIphoneTest(EditTest):
return self.create_iphone()
class EditJSONTest(EditTest):
has_plurals = False
def create_subproject(self):
return self.create_json()
class EditJavaTest(EditTest):
has_plurals = False
......
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