Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mpsd-software-manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MPSD Computational Science
mpsd-software-manager
Commits
cebc78aa
Commit
cebc78aa
authored
1 year ago
by
Ashwin Kumar Karnad
Browse files
Options
Downloads
Patches
Plain Diff
fix tests
parent
7d09f26c
No related branches found
No related tags found
3 merge requests
!38
Rename log related variables
,
!37
Update log names and variable names
,
!29
Restructure log location
Pipeline
#370229
passed
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests.py
+2
-2
2 additions, 2 deletions
tests.py
with
2 additions
and
2 deletions
tests.py
+
2
−
2
View file @
cebc78aa
...
...
@@ -14,7 +14,7 @@ mod = importlib.import_module("mpsd-software-environment")
# set loglevel to debug - useful for understanding problems.
# (if the tests pass, pytest doesn't show any output)
mod
.
set_up_logging
(
loglevel
=
"
debug
"
,
file
name
=
"
tests.log
"
)
mod
.
set_up_logging
(
loglevel
=
"
debug
"
,
file
_path
=
"
tests.log
"
)
logging
.
debug
(
f
"
We have set up logging from
{
__file__
}
"
)
...
...
@@ -349,7 +349,7 @@ def test_metadata_logging(tmp_path):
# Test that the metadata is logged correctly
filename
=
tmp_path
/
"
test-metadata.log
"
print
(
f
"
Writing to
{
filename
}
"
)
mod
.
set_up_logging
(
loglevel
=
"
debug
"
,
file
name
=
filename
)
mod
.
set_up_logging
(
loglevel
=
"
debug
"
,
file
_path
=
filename
)
# our test data
keys
=
[
"
important_key
"
,
"
important_key2
"
]
...
...
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