Skip to content

Commit 7d9b04a

Browse files
Drop env from test_dir; fix test assertion
1 parent d4738bb commit 7d9b04a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

features/json_query.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ And JSON document '1.0'
264264
And JSON document '"1"'
265265
And JSON document '"banana"'
266266
When echo document | celpy --json-document=_ '_ == 1' is run
267-
Then stdout is 'true\nnull\nnull\nnull\n'
267+
Then stdout is 'true\ntrue\nfalse\nfalse\n'
268268
And stderr is ''
269269
And exit status is 0
270270

features/steps/cli_binding.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ def step_impl(context, arguments):
5555

5656
context.data['arguments'] = shlex.split(arguments)
5757

58-
env = context.config.userdata['env']
59-
test_dir = Path.cwd() / ".test" / env
58+
test_dir = Path.cwd() / ".test"
6059
test_dir.mkdir(exist_ok=True, parents=True)
6160
temp = test_dir / "test.json"
6261
temp.write_text("\n".join(context.data['json']) + "\n")

0 commit comments

Comments
 (0)