File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import importlib .resources
2- import json
32import logging
43import sys
54from functools import lru_cache
6- from pathlib import Path
75
86import pytest
97import six
@@ -86,21 +84,6 @@ def pyobjcryst_available():
8684 return has_pyobjcryst ()
8785
8886
89- @pytest .fixture (scope = "session" )
90- def user_filesystem (tmp_path ):
91- base_dir = Path (tmp_path )
92- home_dir = base_dir / "home_dir"
93- home_dir .mkdir (parents = True , exist_ok = True )
94- cwd_dir = base_dir / "cwd_dir"
95- cwd_dir .mkdir (parents = True , exist_ok = True )
96-
97- home_config_data = {"username" : "home_username" , "email" : "home@email.com" }
98- with open (home_dir / "diffpyconfig.json" , "w" ) as f :
99- json .dump (home_config_data , f )
100-
101- yield tmp_path
102-
103-
10487@pytest .fixture (scope = "session" )
10588def datafile ():
10689 """Fixture to load a test data file from the testdata package directory."""
You can’t perform that action at this time.
0 commit comments