clearer intention

This commit is contained in:
Martin Diehl 2020-06-03 15:02:39 +02:00
parent e0d4ee44a3
commit d0d9245707
1 changed files with 1 additions and 1 deletions

View File

@ -302,8 +302,8 @@ class TestResult:
@pytest.mark.parametrize('allowed',['off','on']) @pytest.mark.parametrize('allowed',['off','on'])
def test_rename(self,default,allowed): def test_rename(self,default,allowed):
F = default.read_dataset(default.get_dataset_location('F'))
if allowed == 'on': if allowed == 'on':
F = default.read_dataset(default.get_dataset_location('F'))
default.allow_modification() default.allow_modification()
default.rename('F','new_name') default.rename('F','new_name')
assert np.all(F == default.read_dataset(default.get_dataset_location('new_name'))) assert np.all(F == default.read_dataset(default.get_dataset_location('new_name')))