Commit 6da1b957 authored by Łukasz Nowak's avatar Łukasz Nowak

caddy-frontend/test: Simplify assertTestData id usage

parent eafc9e14
...@@ -300,7 +300,7 @@ class TestDataMixin(object): ...@@ -300,7 +300,7 @@ class TestDataMixin(object):
def assertTestData(self, runtime_data, data_replacement_dict=None, msg=None): def assertTestData(self, runtime_data, data_replacement_dict=None, msg=None):
if data_replacement_dict is None: if data_replacement_dict is None:
data_replacement_dict = {} data_replacement_dict = {}
filename = '%s.txt' % (self.id().replace('zz_', '')) filename = '%s.txt' % (self.id(),)
test_data_file = os.path.join( test_data_file = os.path.join(
os.path.dirname(os.path.realpath(__file__)), 'test_data', filename) os.path.dirname(os.path.realpath(__file__)), 'test_data', filename)
......
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