Skip to content
Snippets Groups Projects
Commit 4c8f5233 authored by David Schäfer's avatar David Schäfer
Browse files

fixed failing reader tests

parent 6ca2e64f
No related branches found
No related tags found
3 merge requests!193Release 1.4,!188Release 1.4,!101Delay expansion of regular expressions
......@@ -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};flagRange(mn=0)", TypeError), # bad argument name
(f"{var1};flagRange(min=0)", TypeError), # not enough arguments
(f"{var1};flagFunc(mn=0)", TypeError), # bad argument name
(f"{var1};flagFunc()", TypeError), # not enough arguments
(f"{var3};flagNothing()", NameError), # unknown function
(";flagRange(min=3)", SyntaxError), # missing variable
(";flagFunc(min=3)", SyntaxError), # missing variable
(f"{var1};", SyntaxError), # missing test
(f"{var1}; min", TypeError), # not a function call
]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment