Lines Matching refs:monkeypatch
188 def fake_readonly_cache(tmpdir, valid_urls, monkeypatch): argument
212 monkeypatch.setattr(os, "mkdir", no_mkdir)
213 monkeypatch.setattr(tempfile, "mkdtemp", no_mkdtemp)
214 monkeypatch.setattr(astropy.utils.data,
1049 def test_data_noastropy_fallback(monkeypatch): argument
1059 monkeypatch.setenv("XDG_CONFIG_HOME", "foo")
1060 monkeypatch.delenv("XDG_CONFIG_HOME")
1061 monkeypatch.setenv("XDG_CACHE_HOME", "bar")
1062 monkeypatch.delenv("XDG_CACHE_HOME")
1064 monkeypatch.setattr(paths.set_temp_config, "_temp_path", None)
1065 monkeypatch.setattr(paths.set_temp_cache, "_temp_path", None)
1071 monkeypatch.setattr(paths, '_find_or_create_root_dir', osraiser)
1672 def test_get_readable_fileobj_cleans_up_temporary_files(tmpdir, monkeypatch): argument
1678 monkeypatch.setattr(tempfile, "tempdir", str(tmpdir))
1717 def test_download_file_wrong_size(monkeypatch): argument
1738 monkeypatch.setattr(astropy.utils.data, "_build_urlopener", mockurl_builder)
2040 def test_removal_of_open_files_windows(temp_cache, valid_urls, monkeypatch): argument
2047 monkeypatch.setattr(astropy.utils.data, "_rmtree", no_rmtree)
2055 def test_update_of_open_files_windows(temp_cache, valid_urls, monkeypatch): argument
2062 monkeypatch.setattr(astropy.utils.data, "_rmtree", no_rmtree)