
    d                    d    d dl mZ d dlZd dlmZmZ d dlmZmZ e G d d                      Z	dS )    )annotationsN)	DataArraytutorial)assert_identicalnetworkc                  R    e Zd Z ej        d          d             Zd	dZd	dZdS )
TestLoadDatasetT)autousec                    d| _         d S )Ntiny)testfile)selfs    :lib/python3.11/site-packages/xarray/tests/test_tutorial.pysetUpzTestLoadDataset.setUp   s        returnNonec                    |t           j        z  }t          j        | j        |                                          }t          t          d          d                                          }t          ||           d S )N	cache_dir   r   )name)	r   _default_cache_dir_nameopen_datasetr   loadr   range
to_datasetr   )r   tmp_pathr   dsr   s        r   test_download_from_githubz)TestLoadDataset.test_download_from_github   sl    x??	"4=IFFFKKMMq///::<<T"""""r   c                    |t           j        z  }t          j        | j        d|                                          }t          j        | j        |                                          }t          ||           d S )NF)cacher   r   )r   r   r   r   r   r   )r   r   monkeypatchr   
ds_nocacheds_caches         r   ,test_download_from_github_load_without_cachez<TestLoadDataset.test_download_from_github_load_without_cache   sx     x??	*M)
 
 

$&& 	 ()LLLQQSS:.....r   N)r   r   )__name__
__module____qualname__pytestfixturer   r    r&    r   r   r	   r	   	   se        V^D!!!  "!# # # #	/ 	/ 	/ 	/ 	/ 	/r   r	   )

__future__r   r*   xarrayr   r   xarray.testsr   r   r	   r,   r   r   <module>r0      s    " " " " " "  & & & & & & & & 2 2 2 2 2 2 2 2 	/ / / / / / / 	/ / /r   