Hi,
I try to include velociraptor-python to Guix Astro collection, the mentioned test file cosmo_0000.properties is not available in https://virgodb.cosma.dur.ac.uk/swift-webstorage/IOExamples/
|
@requires("cosmo_0000.properties") |
|
def test_basic_load_catalogue_no_crash( |
|
filename="test_data/cosmo_0000.properties", |
|
): |
|
catalogue = load(filename) |
|
|
|
return |
|
webstorage_location = "http://virgodb.cosma.dur.ac.uk/swift-webstorage/IOExamples/" |
|
test_data_location = "test_data/" |
|
|
|
|
|
def requires(filename): |
|
""" |
|
Use this as a decorator around tests that require data. |
|
""" |
|
|
|
# First check if the test data directory exists |
|
if not os.path.exists(test_data_location): |
|
os.mkdir(test_data_location) |
|
|
|
file_location = f"{test_data_location}{filename}" |
|
|
|
if os.path.exists(file_location): |
|
ret = 0 |
|
else: |
|
# Download it! |
|
ret = subprocess.call( |
|
["wget", f"{webstorage_location}{filename}", "-O", file_location] |
|
) |
curl -L http://virgodb.cosma.dur.ac.uk/swift-webstorage/IOExamples/cosmo_0000.properties
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
</body></html>
Where I can find it?
Hi,
I try to include velociraptor-python to Guix Astro collection, the mentioned test file
cosmo_0000.propertiesis not available in https://virgodb.cosma.dur.ac.uk/swift-webstorage/IOExamples/velociraptor-python/tests/test_load_catalogue.py
Lines 9 to 15 in 25a3acd
velociraptor-python/tests/helper.py
Lines 8 to 29 in 25a3acd
Where I can find it?