Skip to content

Commit d4f0588

Browse files
committed
start api changes
1 parent 97d6360 commit d4f0588

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

tests/unit/test_active.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import pytest
44
import threading
55

6-
from activestorage.active import Active
6+
from activestorage.active import Active, ActiveVariable
77
from activestorage.active import load_from_s3
88
from activestorage.config import *
99
from botocore.exceptions import EndpointConnectionError as botoExc
@@ -81,6 +81,14 @@ def test_active():
8181
init = active.__init__(uri=uri, ncvar=ncvar)
8282

8383

84+
def test_activevariable():
85+
uri = "tests/test_data/cesm2_native.nc"
86+
ncvar = "TREFHT"
87+
active = Active(uri, ncvar=ncvar)
88+
av = ActiveVariable(active)
89+
assert av.ds.shape == (12, 4, 8)
90+
91+
8492
@pytest.mark.xfail(reason="We don't employ locks with Pyfive anymore, yet.")
8593
def test_lock():
8694
"""Unit test for class:Active."""

0 commit comments

Comments
 (0)