Skip to content

Use K'gari consistently #380

Use K'gari consistently

Use K'gari consistently #380

GitHub Actions / JUnit Test Report - python 3.11, pinned dependencies failed Jun 19, 2024 in 0s

363 tests run, 361 passed, 0 skipped, 2 failed.

Annotations

Check failure on line 62 in tests/cli/commands/test_plot.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report - python 3.11, pinned dependencies

test_plot

requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://github.com/csiro-coasts/emsarray-data/raw/v0.3.0/kgari.nc
Raw output
args = ()
kwargs = {'datasets': PosixPath('/home/runner/work/emsarray/emsarray/tests/datasets'), 'tmp_path': PosixPath('/tmp/pytest-of-runner/pytest-0/test_plot0')}

    def wrapper(*args, **kwargs):
>       store.return_value[test_name] = obj(*args, **kwargs)

/usr/share/miniconda/envs/test/lib/python3.11/site-packages/pytest_mpl/plugin.py:107: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_plot.py:62: in test_plot
    dataset = emsarray.tutorial.open_dataset('kgari')
/usr/share/miniconda/envs/test/lib/python3.11/site-packages/emsarray/tutorial.py:123: in open_dataset
    local_path = _fetch(name)
/usr/share/miniconda/envs/test/lib/python3.11/site-packages/emsarray/tutorial.py:58: in _fetch
    local_path = cast(str, pooch.retrieve(
/usr/share/miniconda/envs/test/lib/python3.11/site-packages/pooch/core.py:239: in retrieve
    stream_download(url, full_path, known_hash, downloader, pooch=None)
/usr/share/miniconda/envs/test/lib/python3.11/site-packages/pooch/core.py:803: in stream_download
    downloader(url, tmp, pooch)
/usr/share/miniconda/envs/test/lib/python3.11/site-packages/pooch/downloaders.py:207: in __call__
    response.raise_for_status()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <Response [404]>

    def raise_for_status(self):
        """Raises :class:`HTTPError`, if one occurred."""
    
        http_error_msg = ""
        if isinstance(self.reason, bytes):
            # We attempt to decode utf-8 first because some servers
            # choose to localize their reason strings. If the string
            # isn't utf-8, we fall back to iso-8859-1 for all other
            # encodings. (See PR #3538)
            try:
                reason = self.reason.decode("utf-8")
            except UnicodeDecodeError:
                reason = self.reason.decode("iso-8859-1")
        else:
            reason = self.reason
    
        if 400 <= self.status_code < 500:
            http_error_msg = (
                f"{self.status_code} Client Error: {reason} for url: {self.url}"
            )
    
        elif 500 <= self.status_code < 600:
            http_error_msg = (
                f"{self.status_code} Server Error: {reason} for url: {self.url}"
            )
    
        if http_error_msg:
>           raise HTTPError(http_error_msg, response=self)
E           requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://github.com/csiro-coasts/emsarray-data/raw/v0.3.0/kgari.nc

/usr/share/miniconda/envs/test/lib/python3.11/site-packages/requests/models.py:1021: HTTPError

Check failure on line 85 in tests/cli/commands/test_plot.py

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report - python 3.11, pinned dependencies

test_plot.test_plot_no_long_name

requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://github.com/csiro-coasts/emsarray-data/raw/v0.3.0/kgari.nc
Raw output
datasets = PosixPath('/home/runner/work/emsarray/emsarray/tests/datasets')
tmp_path = PosixPath('/tmp/pytest-of-runner/pytest-0/test_plot_no_long_name0')

    @pytest.mark.matplotlib(mock_coast=True)
    @pytest.mark.tutorial
    def test_plot_no_long_name(
        datasets: pathlib.Path,
        tmp_path: pathlib.Path,
    ):
        """
        Test plotting a variable with no long_name attribute works.
        Regression test for https://github.com/csiro-coasts/emsarray/issues/105
        """
>       dataset = emsarray.tutorial.open_dataset('kgari')

tests/test_plot.py:85: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/share/miniconda/envs/test/lib/python3.11/site-packages/emsarray/tutorial.py:123: in open_dataset
    local_path = _fetch(name)
/usr/share/miniconda/envs/test/lib/python3.11/site-packages/emsarray/tutorial.py:58: in _fetch
    local_path = cast(str, pooch.retrieve(
/usr/share/miniconda/envs/test/lib/python3.11/site-packages/pooch/core.py:239: in retrieve
    stream_download(url, full_path, known_hash, downloader, pooch=None)
/usr/share/miniconda/envs/test/lib/python3.11/site-packages/pooch/core.py:803: in stream_download
    downloader(url, tmp, pooch)
/usr/share/miniconda/envs/test/lib/python3.11/site-packages/pooch/downloaders.py:207: in __call__
    response.raise_for_status()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <Response [404]>

    def raise_for_status(self):
        """Raises :class:`HTTPError`, if one occurred."""
    
        http_error_msg = ""
        if isinstance(self.reason, bytes):
            # We attempt to decode utf-8 first because some servers
            # choose to localize their reason strings. If the string
            # isn't utf-8, we fall back to iso-8859-1 for all other
            # encodings. (See PR #3538)
            try:
                reason = self.reason.decode("utf-8")
            except UnicodeDecodeError:
                reason = self.reason.decode("iso-8859-1")
        else:
            reason = self.reason
    
        if 400 <= self.status_code < 500:
            http_error_msg = (
                f"{self.status_code} Client Error: {reason} for url: {self.url}"
            )
    
        elif 500 <= self.status_code < 600:
            http_error_msg = (
                f"{self.status_code} Server Error: {reason} for url: {self.url}"
            )
    
        if http_error_msg:
>           raise HTTPError(http_error_msg, response=self)
E           requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://github.com/csiro-coasts/emsarray-data/raw/v0.3.0/kgari.nc

/usr/share/miniconda/envs/test/lib/python3.11/site-packages/requests/models.py:1021: HTTPError