Skip to content

Commit 75493c2

Browse files
committed
rename data_set to ds
1 parent a183c46 commit 75493c2

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

xarray/tests/test_dataset.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4033,28 +4033,28 @@ def test_ipython_key_completion(self):
40334033

40344034

40354035
@pytest.fixture()
4036-
def data_set(seed=None):
4036+
def ds(seed=None):
40374037
return create_test_data(seed)
40384038

40394039

4040-
def test_dir_expected_attrs(data_set):
4040+
def test_dir_expected_attrs(ds):
40414041

40424042
some_expected_attrs = {'pipe', 'mean', 'isnull', 'var1',
40434043
'dim2', 'numbers'}
4044-
result = dir(data_set)
4044+
result = dir(ds)
40454045
assert set(result) >= some_expected_attrs
40464046

40474047

4048-
def test_dir_non_string(data_set):
4048+
def test_dir_non_string(ds):
40494049
# add a numbered key to ensure this doesn't break dir
4050-
data_set[5] = 'foo'
4051-
result = dir(data_set)
4050+
ds[5] = 'foo'
4051+
result = dir(ds)
40524052
assert not (5 in result)
40534053

40544054

4055-
def test_dir_unicode(data_set):
4056-
data_set[u'unicode'] = 'uni'
4057-
result = dir(data_set)
4055+
def test_dir_unicode(ds):
4056+
ds[u'unicode'] = 'uni'
4057+
result = dir(ds)
40584058
assert u'unicode' in result
40594059

40604060

0 commit comments

Comments
 (0)