mirror of
https://github.com/mvt-project/mvt.git
synced 2026-07-08 22:17:53 +02:00
First test structure
This commit is contained in:
committed by
Donncha Ó Cearbhaill
parent
28d57e7178
commit
513e2cc704
@@ -0,0 +1,23 @@
|
||||
import os
|
||||
|
||||
def get_artifact(fname):
|
||||
"""
|
||||
Return the artifact path in the artifact folder
|
||||
"""
|
||||
DATA_FOLDER = os.path.join(os.path.dirname(__file__), "artifacts")
|
||||
fpath = os.path.join(DATA_FOLDER, fname)
|
||||
if os.path.isfile(fpath):
|
||||
return fpath
|
||||
return
|
||||
|
||||
def get_artifact_folder():
|
||||
return os.path.join(os.path.dirname(__file__), "artifacts")
|
||||
|
||||
def init_setup():
|
||||
"""
|
||||
init data to have a clean state before testing
|
||||
"""
|
||||
try:
|
||||
del os.environ['MVT_STIX2']
|
||||
except KeyError:
|
||||
pass
|
||||
Reference in New Issue
Block a user