Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SaQC
Manage
Activity
Members
Labels
Plan
Issues
36
Issue boards
Milestones
Wiki
Code
Merge requests
8
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rdm-software
SaQC
Commits
2a407d42
Commit
2a407d42
authored
3 years ago
by
David Schäfer
Browse files
Options
Downloads
Patches
Plain Diff
not doing paths right at the beginning, will hurt in the long run
parent
e145d7cc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
8 merge requests
!685
Release 2.4
,
!684
Release 2.4
,
!567
Release 2.2.1
,
!566
Release 2.2
,
!501
Release 2.1
,
!372
fix doctest snippets
,
!369
Current documentation
,
!364
Release preparation
Pipeline
#53419
failed with stage
in 1 minute and 38 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/integration/test_integration.py
+6
-7
6 additions, 7 deletions
tests/integration/test_integration.py
with
6 additions
and
7 deletions
tests/integration/test_integration.py
+
6
−
7
View file @
2a407d42
#!/usr/bin/env python
from
click.testing
import
CliRunner
import
os
from
pathlib
import
Path
def
test__main__py
():
def
test__main__py
(
tmp_path
):
import
saqc.__main__
# if not run from project root
projpath
=
os
.
path
.
dirname
(
saqc
.
__file__
)
+
"
/../
"
projpath
=
Path
(
saqc
.
__file__
)
.
parents
[
1
]
args
=
[
"
--config
"
,
projpath
+
"
ressources/data/config.csv
"
,
Path
(
projpath
,
"
ressources/data/config.csv
"
)
,
"
--data
"
,
projpath
+
"
ressources/data/data.csv
"
,
Path
(
projpath
,
"
ressources/data/data.csv
"
)
,
"
--outfile
"
,
"
/tmp/
test.csv
"
,
# the filesystem temp dir
Path
(
tmp_path
,
"
test.csv
"
)
,
# the filesystem temp dir
]
runner
=
CliRunner
()
for
scheme
in
[
"
float
"
,
"
positional
"
,
"
dmp
"
,
"
simple
"
]:
result
=
runner
.
invoke
(
saqc
.
__main__
.
main
,
args
+
[
"
--scheme
"
,
scheme
])
assert
result
.
exit_code
==
0
,
result
.
output
This diff is collapsed.
Click to expand it.
David Schäfer
@schaefed
mentioned in commit
63b55c6d
·
2 years ago
mentioned in commit
63b55c6d
mentioned in commit 63b55c6d7dadb0e612b23a897f292d5ffc14cb52
Toggle commit list
David Schäfer
@schaefed
mentioned in commit
684dc8a0
·
2 years ago
mentioned in commit
684dc8a0
mentioned in commit 684dc8a0515470d644fc85fee95d07661c8dd572
Toggle commit list
David Schäfer
@schaefed
mentioned in commit
8f7a90e4
·
1 year ago
mentioned in commit
8f7a90e4
mentioned in commit 8f7a90e4aed61c79a9dc8d67541a46beba0907e8
Toggle commit list
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