1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-15 22:31:12 +00:00
This commit is contained in:
deadc0de6
2023-01-28 17:49:21 +01:00
committed by deadc0de
parent fa9ca29d14
commit b44d9026f5

View File

@@ -360,7 +360,7 @@ class TestImport(unittest.TestCase):
self.assertFalse(any(t.endswith('ing') for t in transformations))
# testing variables
variables = self._remove_priv_vars(ycont['variables'].keys())
variables = _remove_priv_vars(ycont['variables'].keys())
self.assertTrue(all(v.endswith('ed') for v in variables))
self.assertFalse(any(v.endswith('ing') for v in variables))
dyn_variables = ycont['dynvariables'].keys()
@@ -402,14 +402,15 @@ class TestImport(unittest.TestCase):
self.assertFalse(any(t.endswith('ed') for t in transformations))
# testing variables
variables = self._remove_priv_vars(ycont['variables'].keys())
variables = _remove_priv_vars(ycont['variables'].keys())
self.assertTrue(all(v.endswith('ing') for v in variables))
self.assertFalse(any(v.endswith('ed') for v in variables))
dyn_variables = ycont['dynvariables'].keys()
self.assertTrue(all(dv.endswith('ing') for dv in dyn_variables))
self.assertFalse(any(dv.endswith('ed') for dv in dyn_variables))
def _remove_priv_vars(self, variables_keys):
def _remove_priv_vars(variables_keys):
variables = [v for v in variables_keys if not v.startswith('_')]
if 'profile' in variables:
variables.remove('profile')