Skip to content

Commit

Permalink
Move the diff test folders into its own folder to prevent clashing wi…
Browse files Browse the repository at this point in the history
…th test translations folder
  • Loading branch information
AlexLuo602 committed Nov 15, 2024
1 parent 22c194f commit c4c21db
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 11 deletions.
Empty file.
24 changes: 13 additions & 11 deletions i18nilize/tests/test_diffing.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,21 @@

class TestDiffing(unittest.TestCase):
def setUp(self):
# 'mock' translations folder to mimic real user interaction
self.test_translations_dir = "tests/resources/diffing_algorithm/test_translations/"

# main directory for diffing tests
self.test_data_location = "tests/resources/diffing_algorithm/"
self.test_data_location = "tests/resources/diffing_algorithm/all_tests/"

# 'mock' translations folder to mimic real user interaction
self.test_translations_dir = self.test_data_location + "test_translations/"

"""
I'm not sure if we should set up the basic test for every test we run in this file
May need to refactor to allow more complex tests to be initialized too
"""
self.basic_initial_data_location = self.test_data_location + "basic_test/initial_translations/"
self.basic_modified_data_location = self.test_data_location + "basic_test/modified_translations/"
self.basic_expected_output = self.test_data_location + "basic_test/expected_output.json"
# standardized names for a test folder
self.initial_translations_dir = "/initial_translations/"
self.modified_translation_dir = "/modified_translations/"
self.expected_output_file = "/expected_output.json"

# default test data to basic tests
self.basic_initial_data_location = self.test_data_location + "basic_test" + self.initial_translations_dir
self.basic_modified_data_location = self.test_data_location + "basic_test" + self.modified_translation_dir
self.basic_expected_output = self.test_data_location + "basic_test" + self.expected_output_file

# initialize util class
self.util = DiffingTestUtil(self.test_translations_dir)
Expand Down

0 comments on commit c4c21db

Please sign in to comment.