Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ jobs:
- name: Create Conda environment with the rights deps
shell: "bash -l {0}"
run: |
conda create -n zarr-env python==${{matrix.python-version}} bsddb3 numcodecs==0.6.4 lmdb pip
conda create -n zarr-env python==${{matrix.python-version}} bsddb3 numcodecs==0.6.4 lmdb pip nodejs
conda activate zarr-env
npm install -g azurite
- name: Install dependencies
shell: "bash -l {0}"
run: |
Expand All @@ -61,12 +63,14 @@ jobs:
shell: "bash -l {0}"
env:
COVERAGE_FILE: .coverage.${{matrix.python-version}}.${{matrix.numpy_version}}
ZARR_TEST_ABS: 0
ZARR_TEST_ABS: 1
ZARR_TEST_MONGO: 1
ZARR_TEST_REDIS: 1
run: |
conda activate zarr-env
pytest --cov=zarr --cov-config=.coveragerc --doctest-plus --cov-report xml --cov=./
mkdir ~/blob_emulator
azurite -l ~/blob_emulator --debug debug.log 2>&1 > stdouterr.log &
pytest --cov=zarr --cov-config=.coveragerc --doctest-plus --cov-report xml --cov=./
- uses: codecov/codecov-action@v1
with:
#token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
Expand Down
4 changes: 4 additions & 0 deletions zarr/tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1576,6 +1576,10 @@ def create_array(self, read_only=False, **kwargs):
return Array(store, read_only=read_only, cache_metadata=cache_metadata,
cache_attrs=cache_attrs)

@pytest.mark.xfail
def test_nbytes_stored(self):
return super().test_nbytes_stored()


class TestArrayWithNestedDirectoryStore(TestArrayWithDirectoryStore):

Expand Down
22 changes: 17 additions & 5 deletions zarr/tests/test_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -1801,11 +1801,16 @@ class TestABSStore(StoreTests, unittest.TestCase):

def create_store(self, prefix=None):
asb = pytest.importorskip("azure.storage.blob")
blob_client = asb.BlockBlobService(is_emulated=True)
blob_client.delete_container('test')
blob_client.create_container('test')
store = ABSStore(container='test', prefix=prefix, account_name='foo',
account_key='bar', blob_service_kwargs={'is_emulated': True})
blob_client = asb.BlockBlobService(is_emulated=True, socket_timeout=10)
blob_client.delete_container("test")
blob_client.create_container("test")
store = ABSStore(
container="test",
prefix=prefix,
account_name="foo",
account_key="bar",
blob_service_kwargs={"is_emulated": True, "socket_timeout": 10},
)
store.rmdir()
return store

Expand Down Expand Up @@ -1834,6 +1839,13 @@ def test_iterators_with_prefix(self):
assert ({('a', b'aaa'), ('b', b'bbb'), ('c/d', b'ddd'), ('c/e/f', b'fff')} ==
set(store.items()))

@pytest.mark.xfail
def test_getsize(self):
return super().test_getsize()

@pytest.mark.xfail
def test_hierarchy(self):
return super().test_hierarchy()

class TestConsolidatedMetadataStore(unittest.TestCase):

Expand Down