mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-15 22:31:12 +00:00
linting
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user