Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SaQC
Manage
Activity
Members
Labels
Plan
Issues
35
Issue boards
Milestones
Wiki
Code
Merge requests
7
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
4c8f5233
Commit
4c8f5233
authored
4 years ago
by
David Schäfer
Browse files
Options
Downloads
Patches
Plain Diff
fixed failing reader tests
parent
6ca2e64f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!193
Release 1.4
,
!188
Release 1.4
,
!101
Delay expansion of regular expressions
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/core/test_reader.py
+8
-4
8 additions, 4 deletions
test/core/test_reader.py
with
8 additions
and
4 deletions
test/core/test_reader.py
+
8
−
4
View file @
4c8f5233
...
...
@@ -104,14 +104,18 @@ def test_configFile(data):
def
test_configChecks
(
data
):
var1
,
var2
,
var3
,
*
_
=
data
.
columns
var1
,
_
,
var3
,
*
_
=
data
.
columns
@register
(
masking
=
"
none
"
)
def
flagFunc
(
data
,
field
,
flagger
,
arg
,
opt_arg
=
None
,
**
kwargs
):
return
data
,
flagger
header
=
f
"
{
F
.
VARNAME
}
;
{
F
.
TEST
}
"
tests
=
[
(
f
"
{
var1
}
;flag
Range
(mn=0)
"
,
TypeError
),
# bad argument name
(
f
"
{
var1
}
;flag
Range(min=0
)
"
,
TypeError
),
# not enough arguments
(
f
"
{
var1
}
;flag
Func
(mn=0)
"
,
TypeError
),
# bad argument name
(
f
"
{
var1
}
;flag
Func(
)
"
,
TypeError
),
# not enough arguments
(
f
"
{
var3
}
;flagNothing()
"
,
NameError
),
# unknown function
(
"
;flag
Range
(min=3)
"
,
SyntaxError
),
# missing variable
(
"
;flag
Func
(min=3)
"
,
SyntaxError
),
# missing variable
(
f
"
{
var1
}
;
"
,
SyntaxError
),
# missing test
(
f
"
{
var1
}
; min
"
,
TypeError
),
# not a function call
]
...
...
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