File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
solarforecastarbiter/io/reference_observations/tests Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 11import copy
2+ import inspect
23import json
3- from pkg_resources import resource_filename , Requirement
4+ import os
45
56
67import numpy as np
1112from solarforecastarbiter .datamodel import Site , Observation
1213
1314
15+ TEST_DATA_DIR = os .path .dirname (
16+ os .path .abspath (inspect .getfile (inspect .currentframe ())))
17+
18+
1419def site_dicts ():
1520 return [copy .deepcopy (site ) for site in [
1621 {
@@ -157,7 +162,4 @@ def mock_fetch(mocker, fake_ghi_data):
157162
158163@pytest .fixture
159164def test_json_site_file ():
160- return resource_filename (
161- Requirement .parse ('solarforecastarbiter' ),
162- 'solarforecastarbiter/io/reference_observations/'
163- 'tests/data/test_site.json' )
165+ return os .path .join (TEST_DATA_DIR , 'data' , 'test_site.json' )
You can’t perform that action at this time.
0 commit comments