Skip to content
Snippets Groups Projects
Commit 329e08e0 authored by Mayr, Hannes's avatar Mayr, Hannes
Browse files

Fix unittest.

parent 8ca72d33
Branches
Tags
2 merge requests!65Release v0.3.0,!64New year developments
Pipeline #888938 passed
......@@ -10,6 +10,7 @@ import sys
import platform
import shutil
from collections import Counter
from importlib.metadata import version
from subprocess import run, CalledProcessError
from unittest.mock import patch
import matplotlib.pyplot as plt
......@@ -348,16 +349,18 @@ class TestPublish(unittest.TestCase):
This test only works if called from the parent directory, since the path to the
file to test the behaviour has to be specified correctly.
"""
mpl_version = version("matplotlib")
expected_modules = [
"shutil\n",
"unittest\n",
"subprocess\n",
"platform\n",
"matplotlib==3.6.2\n",
f"matplotlib=={mpl_version}\n",
"os\n",
"sys\n",
"plotid\n",
"collections\n",
"importlib\n",
]
folder = os.path.join("test_parent", "test_dst_folder")
os.mkdir(folder)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment