Skip to content

Commit

Permalink
Rename test features to be case independant #246
Browse files Browse the repository at this point in the history
  • Loading branch information
frodrigo committed Nov 3, 2018
1 parent 982c1b4 commit 0729e71
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions analysers/analyser_sax.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,25 +616,25 @@ def test_FR(self):
self.check_num_err(min=53)

def test_fr(self):
self.xml_res_file = os.path.join(self.dirname, "sax.test.fr.xml")
self.xml_res_file = os.path.join(self.dirname, "sax.test.Lang_fr.xml")
self.config.dst = self.xml_res_file
self.config.options = {"language": "fr", "project": "openstreetmap"}
with Analyser_Sax(self.config) as analyser_obj:
analyser_obj.analyser()

self.compare_results("tests/results/sax.test.fr.xml")
self.compare_results("tests/results/sax.test.Lang_fr.xml")

self.root_err = self.load_errors()
self.check_num_err(min=41)

def test_fr_nl(self):
self.xml_res_file = os.path.join(self.dirname, "sax.test.fr_nl.xml")
self.xml_res_file = os.path.join(self.dirname, "sax.test.Lang_fr_nl.xml")
self.config.dst = self.xml_res_file
self.config.options = {"language": ["fr", "nl"], "project": "openstreetmap"}
with Analyser_Sax(self.config) as analyser_obj:
analyser_obj.analyser()

self.compare_results("tests/results/sax.test.fr_nl.xml")
self.compare_results("tests/results/sax.test.Lang_fr_nl.xml")

self.root_err = self.load_errors()
self.check_num_err(min=37)
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 0729e71

Please sign in to comment.