Skip to content

Commit

Permalink
write_local_test.py now updates local test files
Browse files Browse the repository at this point in the history
  • Loading branch information
Azzouz-Thuderoz committed Feb 18, 2024
1 parent 25ed082 commit a501522
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 20 deletions.
14 changes: 2 additions & 12 deletions src/zbmath_rest2oai/write_local_test.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
import json

import requests
import os

from requests.auth import HTTPBasicAuth

from zbmath_rest2oai import getAsXml
import sys

def write_oai(x, api_source):
test_xml = getAsXml.final_xml2(x, api_source)
return

if __name__ == '__main__':

print(write_oai(sys.argv[1], sys.argv[2]))
with open(sys.argv[3], 'w') as f:
f.write(getAsXml.final_xml2(sys.argv[1], sys.argv[2]))
16 changes: 8 additions & 8 deletions test/data/software/plain.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@
<classification>86</classification>
<classification>90</classification>
<classification>92</classification>
<dependencies></dependencies>
<dependencies/>
<description>zbMATH Open Web Interface contents unavailable due to conflicting licenses.</description>
<homepage>http://crd-legacy.lbl.gov/~xiaoye/SuperLU/</homepage>
<id>2</id>
<keywords>orms</keywords>
<license_terms></license_terms>
<license_terms/>
<name>SuperLU-DIST</name>
<operating_systems></operating_systems>
<operating_systems/>
<orms_id>265</orms_id>
<programming_languages></programming_languages>
<programming_languages/>
<related_software>
<id>4013</id>
<name>MUMPS</name>
Expand Down Expand Up @@ -108,9 +108,9 @@
<id>17483</id>
<name>STRUMPACK</name>
</related_software>
<source_code></source_code>
<source_code/>
<standard_articles>
<authors></authors>
<authors/>
<id>2187846</id>
<source>zbMATH Open Web Interface contents unavailable due to conflicting licenses.</source>
<title>zbMATH Open Web Interface contents unavailable due to conflicting licenses.</title>
Expand All @@ -122,8 +122,8 @@
<execution>successful request</execution>
<execution_bool>True</execution_bool>
<internal_code>ok</internal_code>
<query_execution_time_in_seconds>0.07225203514099121</query_execution_time_in_seconds>
<query_execution_time_in_seconds>0.07555723190307617</query_execution_time_in_seconds>
<status_code>200</status_code>
<time_stamp>2024-02-09 12:49:18.259135</time_stamp>
<time_stamp>2024-02-18 14:36:29.831699</time_stamp>
</status>
</root>

0 comments on commit a501522

Please sign in to comment.