@@ -51,77 +51,77 @@ def test_get_checksums(ahn_version):
51
51
assert sha is not None
52
52
53
53
54
- def test_checksums_for_ahn (context ):
55
- res = md5_ahn3 (context )
54
+ def test_checksums_for_ahn (context_ahn ):
55
+ res = md5_ahn3 (context_ahn )
56
56
assert len (res ) > 0
57
57
for k , sha in list (res .items ())[:5 ]:
58
58
assert sha is not None
59
- res = md5_ahn4 (context )
59
+ res = md5_ahn4 (context_ahn )
60
60
assert len (res ) > 0
61
61
for k , sha in list (res .items ())[:5 ]:
62
62
assert sha is not None
63
- res = sha256_ahn5 (context )
63
+ res = sha256_ahn5 (context_ahn )
64
64
assert len (res ) > 0
65
65
for k , sha in list (res .items ())[:5 ]:
66
66
assert sha is not None
67
67
68
68
69
- def test_tile_index_ahn (context ):
70
- res = tile_index_ahn (context )
69
+ def test_tile_index_ahn (context_ahn ):
70
+ res = tile_index_ahn (context_ahn )
71
71
assert len (res ) == 1407
72
72
assert res [list (res .keys ())[0 ]] is not None
73
73
74
74
75
75
@pytest .mark .slow
76
- def test_laz_files_ahn3 (context , md5_ahn3_fix , tile_index_ahn_fix ):
77
- laz_dir = ahn_laz_dir (context .resources .file_store .file_store .data_dir , 3 )
76
+ def test_laz_files_ahn3 (context_ahn , md5_ahn3_fix , tile_index_ahn_fix ):
77
+ laz_dir = ahn_laz_dir (context_ahn .resources .file_store .file_store .data_dir , 3 )
78
78
laz_dir .mkdir (exist_ok = True , parents = True )
79
79
config = LazFilesConfig (force_download = False , check_hash = False )
80
- res = laz_files_ahn3 (context , config , md5_ahn3_fix , tile_index_ahn_fix )
80
+ res = laz_files_ahn3 (context_ahn , config , md5_ahn3_fix , tile_index_ahn_fix )
81
81
assert res .value .url is not None
82
82
assert res is not None
83
83
print (res .value )
84
84
85
85
86
86
@pytest .mark .slow
87
- def test_laz_files_ahn4 (context , md5_ahn4_fix , tile_index_ahn_fix ):
88
- laz_dir = ahn_laz_dir (context .resources .file_store .file_store .data_dir , 4 )
87
+ def test_laz_files_ahn4 (context_ahn , md5_ahn4_fix , tile_index_ahn_fix ):
88
+ laz_dir = ahn_laz_dir (context_ahn .resources .file_store .file_store .data_dir , 4 )
89
89
laz_dir .mkdir (exist_ok = True , parents = True )
90
90
config = LazFilesConfig (force_download = False , check_hash = False )
91
- res = laz_files_ahn4 (context , config , md5_ahn4_fix , tile_index_ahn_fix )
91
+ res = laz_files_ahn4 (context_ahn , config , md5_ahn4_fix , tile_index_ahn_fix )
92
92
assert res .value .url is not None
93
93
assert res is not None
94
94
95
95
96
96
@pytest .mark .slow
97
- def test_laz_files_ahn5 (context , sha256_ahn5_fix , tile_index_ahn_fix ):
98
- laz_dir = ahn_laz_dir (context .resources .file_store .file_store .data_dir , 5 )
97
+ def test_laz_files_ahn5 (context_ahn , sha256_ahn5_fix , tile_index_ahn_fix ):
98
+ laz_dir = ahn_laz_dir (context_ahn .resources .file_store .file_store .data_dir , 5 )
99
99
laz_dir .mkdir (exist_ok = True , parents = True )
100
100
config = LazFilesConfig (force_download = False , check_hash = False )
101
- res = laz_files_ahn5 (context , config , sha256_ahn5_fix , tile_index_ahn_fix )
101
+ res = laz_files_ahn5 (context_ahn , config , sha256_ahn5_fix , tile_index_ahn_fix )
102
102
assert res .value .url is not None
103
103
assert res is not None
104
104
105
105
106
- def test_metadata_table_ahn3 (context ):
107
- metadata = metadata_table_ahn3 (context )
106
+ def test_metadata_table_ahn3 (context_ahn ):
107
+ metadata = metadata_table_ahn3 (context_ahn )
108
108
tbl = PostgresTableIdentifier ("ahn" , "metadata_ahn3" )
109
- assert table_exists (context , tbl )
109
+ assert table_exists (context_ahn , tbl )
110
110
assert isinstance (metadata , PostgresTableIdentifier )
111
111
assert str (metadata ) == f"{ tbl .schema } .{ tbl .table } "
112
112
113
113
114
- def test_metadata_table_ahn4 (context ):
115
- metadata = metadata_table_ahn4 (context )
114
+ def test_metadata_table_ahn4 (context_ahn ):
115
+ metadata = metadata_table_ahn4 (context_ahn )
116
116
tbl = PostgresTableIdentifier ("ahn" , "metadata_ahn4" )
117
- assert table_exists (context , tbl )
117
+ assert table_exists (context_ahn , tbl )
118
118
assert isinstance (metadata , PostgresTableIdentifier )
119
119
assert str (metadata ) == f"{ tbl .schema } .{ tbl .table } "
120
120
121
121
122
- def test_metadata_table_ahn5 (context ):
123
- metadata = metadata_table_ahn5 (context )
122
+ def test_metadata_table_ahn5 (context_ahn ):
123
+ metadata = metadata_table_ahn5 (context_ahn )
124
124
tbl = PostgresTableIdentifier ("ahn" , "metadata_ahn5" )
125
- assert table_exists (context , tbl )
125
+ assert table_exists (context_ahn , tbl )
126
126
assert isinstance (metadata , PostgresTableIdentifier )
127
127
assert str (metadata ) == f"{ tbl .schema } .{ tbl .table } "
0 commit comments