Skip to content

Commit 1b20098

Browse files
committed
further test simplifications
1 parent 0641a6f commit 1b20098

File tree

4 files changed

+3
-10
lines changed

4 files changed

+3
-10
lines changed

tests/conftest.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,6 @@ async def _inner(srcpath, args=None, n_args=3):
197197
if n_args == 2:
198198
# Don't include the parser:
199199
await script(options, str(srcpath))
200-
output.ret = 0
201-
output.exc = ''
202200

203201
output.logging = '\n'.join([i.message for i in caplog.records])
204202
output.out, output.err = capsys.readouterr()
@@ -347,9 +345,6 @@ async def _inner(wid, args):
347345
script_module.get_option_parser,
348346
)(wid, args, n_args=n_args)
349347

350-
# Check outputs
351-
assert all(output.ret == 0 for output in results.values())
352-
353348
# Return results for more checking if required:
354349
return results
355350

tests/functional/test_pre_configure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ async def test_validate(monkeypatch, srcdir, envvars, args, cylc_validate_cli):
6666
for key, value in (envvars or {}).items():
6767
monkeypatch.setenv(key, value)
6868
srcdir = Path(__file__).parent / srcdir
69-
validate = await cylc_validate_cli(str(srcdir), args)
70-
assert validate.ret == 0
69+
# this is the test, we just asserting that this doesn't fail:
70+
await cylc_validate_cli(str(srcdir), args)
7171

7272

7373
@pytest.mark.parametrize(

tests/functional/test_reinstall.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ async def fixture_install_flow(
108108
async def test_cylc_validate(fixture_provide_flow, cylc_validate_cli):
109109
"""Sanity check that workflow validates:
110110
"""
111-
srcpath = fixture_provide_flow['srcpath']
112-
assert (await cylc_validate_cli(str(srcpath))).ret == 0
111+
await cylc_validate_cli(str(fixture_provide_flow['srcpath']))
113112

114113

115114
@pytest.mark.parametrize(

tests/functional/test_utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ async def test_global_config_environment_validate(
7373

7474
# Validate the config:
7575
output = await cylc_validate_cli(tmp_path)
76-
assert output.ret == 0
7776

7877
# CYLC_SYMLINKS == None the first time the global.cylc
7978
# is loaded and "Foo" the second time.

0 commit comments

Comments
 (0)