
24 Jun
2020
24 Jun
'20
9:30 a.m.
Hi Stephen,
From: Stephen Warren swarren@wwwdotorg.org Sent: mardi 23 juin 2020 22:25
On 6/23/20 7:25 AM, Patrick DELAUNAY wrote:
Hi Stephen,
From: Stephen Warren swarren@wwwdotorg.org Sent: lundi 22 juin 2020 20:51
On 6/19/20 6:03 AM, Patrick Delaunay wrote:
Add a pytest for testing the env info sub-command:
...
+def test_env_info(state_test_env):
...
- for l in response.split('\n'):
if 'env_valid = ' in l:
assert '= invalid' in l or '= valid' in l or '= redundant' in l
nb_line += 1
elif 'env_ready =' in l or 'env_use_default =' in l:
assert '= true' in l or '= false' in l
nb_line += 1
else:
assert true
Those last two lines don't seem terribly useful:-)
Not really, beacuse I add the nb_line check, this first check can be removed.
Do expect a V6 just for that?
Probably not.
OK I will keep this remark if I need to update the serie (or the next planned updates of this test)
Patrick