Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
plotID_python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
plotID
plotID_python
Commits
329e08e0
Commit
329e08e0
authored
2 years ago
by
Mayr, Hannes
Browse files
Options
Downloads
Patches
Plain Diff
Fix unittest.
parent
8ca72d33
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!65
Release v0.3.0
,
!64
New year developments
Pipeline
#888938
passed
2 years ago
Stage: linting
Stage: testing
Stage: security
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_publish.py
+4
-1
4 additions, 1 deletion
tests/test_publish.py
with
4 additions
and
1 deletion
tests/test_publish.py
+
4
−
1
View file @
329e08e0
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment