Enforce job_id as string

This commit is contained in:
Benoît Seignovert 2024-03-22 19:58:02 +01:00
parent aaf16ee89d
commit 5cdee4d73d
Signed by: Benoît Seignovert
GPG key ID: F5D8895227D18A0B
2 changed files with 5 additions and 5 deletions

View file

@ -79,10 +79,10 @@ def test_spawner_parse_job_id():
"""Test spawner job id parser."""
spawner = GlicidSpawner()
assert spawner.parse_job_id('123') == 123
assert spawner.parse_job_id('123') == '123'
assert spawner.parse_job_id('456;nautilus') == '456 -M nautilus'
assert spawner.parse_job_id('') is None
assert spawner.parse_job_id('') == ''
def test_spawner_options_form(monkeypatch):