97
97
def test__read_pdb ():
98
98
"""Test private _read_pdb"""
99
99
ppdb = PandasMmcif ()
100
- path , txt = ppdb ._read_mmcif (TESTDATA_FILENAME )
100
+ _ , txt = ppdb ._read_mmcif (TESTDATA_FILENAME )
101
101
print (txt )
102
102
assert txt == three_eiy
103
103
@@ -127,9 +127,9 @@ def test_fetch_pdb():
127
127
128
128
try :
129
129
ppdb = PandasMmcif ()
130
- url , txt = ppdb ._fetch_mmcif ("3eiy" )
130
+ _ , txt = ppdb ._fetch_mmcif ("3eiy" )
131
131
except (HTTPError , ConnectionResetError ):
132
- url , txt = None , None
132
+ _ , txt = None , None
133
133
if txt : # skip if PDB down
134
134
txt [:100 ] == three_eiy [:100 ]
135
135
ppdb .fetch_mmcif ("3eiy" )
@@ -142,9 +142,9 @@ def test_fetch_af2():
142
142
# Test latest release
143
143
try :
144
144
ppdb = PandasMmcif ()
145
- url , txt = ppdb ._fetch_af2 ("Q5VSL9" , af2_version = 4 )
145
+ _ , txt = ppdb ._fetch_af2 ("Q5VSL9" , af2_version = 4 )
146
146
except (HTTPError , ConnectionResetError ):
147
- url , txt = None , None
147
+ _ , txt = None , None
148
148
if txt : # skip if AF DB down
149
149
txt [:100 ] == af2_test_struct_v4 [:100 ]
150
150
ppdb .fetch_mmcif (uniprot_id = "Q5VSL9" , source = "alphafold2-v4" )
@@ -157,9 +157,9 @@ def test_fetch_af2():
157
157
# Test legacy release
158
158
try :
159
159
ppdb = PandasMmcif ()
160
- url , txt = ppdb ._fetch_af2 ("Q5VSL9" , af2_version = 3 )
160
+ _ , txt = ppdb ._fetch_af2 ("Q5VSL9" , af2_version = 3 )
161
161
except (HTTPError , ConnectionResetError ):
162
- url , txt = None , None
162
+ _ , txt = None , None
163
163
if txt : # skip if AF DB down
164
164
txt [:100 ] == af2_test_struct_v3 [:100 ]
165
165
ppdb .fetch_mmcif (uniprot_id = "Q5VSL9" , source = "alphafold2-v3" )
@@ -173,7 +173,7 @@ def test_fetch_af2():
173
173
def test__read_pdb_gz ():
174
174
"""Test public _read_pdb with gzip files"""
175
175
ppdb = PandasMmcif ()
176
- path , txt = ppdb ._read_mmcif (TESTDATA_FILENAME_GZ )
176
+ _ , txt = ppdb ._read_mmcif (TESTDATA_FILENAME_GZ )
177
177
assert txt == three_eiy
178
178
179
179
0 commit comments