We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97d6360 commit d4f0588Copy full SHA for d4f0588
tests/unit/test_active.py
@@ -3,7 +3,7 @@
3
import pytest
4
import threading
5
6
-from activestorage.active import Active
+from activestorage.active import Active, ActiveVariable
7
from activestorage.active import load_from_s3
8
from activestorage.config import *
9
from botocore.exceptions import EndpointConnectionError as botoExc
@@ -81,6 +81,14 @@ def test_active():
81
init = active.__init__(uri=uri, ncvar=ncvar)
82
83
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
92
@pytest.mark.xfail(reason="We don't employ locks with Pyfive anymore, yet.")
93
def test_lock():
94
"""Unit test for class:Active."""
0 commit comments