зеркало из
https://github.com/ssciwr/AMMICO.git
synced 2025-10-30 13:36:04 +02:00
skip import on windows
Этот коммит содержится в:
родитель
bc96aeb06f
Коммит
f0a96bae86
@ -8,11 +8,3 @@ except ImportError:
|
|||||||
# Export the version defined in project metadata
|
# Export the version defined in project metadata
|
||||||
__version__ = metadata.version(__package__)
|
__version__ = metadata.version(__package__)
|
||||||
del metadata
|
del metadata
|
||||||
|
|
||||||
from misinformation.display import explore_analysis
|
|
||||||
from misinformation.utils import (
|
|
||||||
find_files,
|
|
||||||
initialize_dict,
|
|
||||||
append_data_to_dict,
|
|
||||||
dump_df,
|
|
||||||
)
|
|
||||||
|
|||||||
@ -1,11 +1,14 @@
|
|||||||
import json
|
import json
|
||||||
from misinformation.display import explore_analysis
|
|
||||||
from pytest import approx
|
# import misinformation.display as misinf_display
|
||||||
|
import pytest
|
||||||
|
|
||||||
|
misinf_display = pytest.importorskip("misinformation.display")
|
||||||
|
|
||||||
|
|
||||||
def test_explore_analysis_faces():
|
def test_explore_analysis_faces():
|
||||||
mydict = {"IMG_2746": {"filename": "./test/data/IMG_2746.png"}}
|
mydict = {"IMG_2746": {"filename": "./test/data/IMG_2746.png"}}
|
||||||
explore_analysis(mydict, identify="faces")
|
misinf_display.explore_analysis(mydict, identify="faces")
|
||||||
with open("./test/data/example_faces.json", "r") as file:
|
with open("./test/data/example_faces.json", "r") as file:
|
||||||
outs = json.load(file)
|
outs = json.load(file)
|
||||||
|
|
||||||
@ -17,7 +20,7 @@ def test_explore_analysis_faces():
|
|||||||
|
|
||||||
def test_explore_analysis_objects():
|
def test_explore_analysis_objects():
|
||||||
mydict = {"IMG_2746": {"filename": "./test/data/IMG_2809.png"}}
|
mydict = {"IMG_2746": {"filename": "./test/data/IMG_2809.png"}}
|
||||||
explore_analysis(mydict, identify="objects")
|
misinf_display.explore_analysis(mydict, identify="objects")
|
||||||
with open("./test/data/example_analysis_objects.json", "r") as file:
|
with open("./test/data/example_analysis_objects.json", "r") as file:
|
||||||
outs = json.load(file)
|
outs = json.load(file)
|
||||||
|
|
||||||
|
|||||||
Загрузка…
x
Ссылка в новой задаче
Block a user