change test for new csv

This commit is contained in:
Cayo Puigdefabregas 2020-10-22 15:54:42 +02:00
parent 20f2300ce1
commit 4847bdd19d
4 changed files with 24 additions and 7 deletions

File diff suppressed because one or more lines are too long

View file

@ -194,6 +194,12 @@
"type": "StepRandom", "type": "StepRandom",
"severity": "Info", "severity": "Info",
"endTime": "2019-08-19T17:34:22.930562+00:00" "endTime": "2019-08-19T17:34:22.930562+00:00"
},
{
"startTime": "2019-08-19T17:34:22.690458+00:00",
"type": "StepZero",
"severity": "Info",
"endTime": "2019-08-19T18:34:22.930562+00:00"
} }
], ],
"severity": "Info", "severity": "Info",

File diff suppressed because one or more lines are too long

View file

@ -101,6 +101,7 @@ def test_export_basic_snapshot(user: UserClient):
assert fixture_csv[0] == export_csv[0], 'Headers are not equal' assert fixture_csv[0] == export_csv[0], 'Headers are not equal'
assert fixture_csv[1][:17] == export_csv[1][:17], 'Computer information are not equal' assert fixture_csv[1][:17] == export_csv[1][:17], 'Computer information are not equal'
assert fixture_csv[1][18] == export_csv[1][18], 'Computer information are not equal'
assert fixture_csv[1][20:] == export_csv[1][20:], 'Computer information are not equal' assert fixture_csv[1][20:] == export_csv[1][20:], 'Computer information are not equal'
@pytest.mark.mvp @pytest.mark.mvp
@ -136,9 +137,19 @@ def test_export_extended(app: Devicehub, user: UserClient):
assert fixture_csv[0] == export_csv[0], 'Headers are not equal' assert fixture_csv[0] == export_csv[0], 'Headers are not equal'
assert fixture_csv[1][:17] == export_csv[1][:17], 'Computer information are not equal' assert fixture_csv[1][:17] == export_csv[1][:17], 'Computer information are not equal'
assert fixture_csv[1][20:80] == export_csv[1][20:80], 'Computer information are not equal' assert fixture_csv[1][18] == export_csv[1][18], 'Computer information are not equal'
assert fixture_csv[1][20:79] == export_csv[1][20:79], 'Computer information are not equal'
assert fixture_csv[1][80] == export_csv[1][80], 'Computer information are not equal'
assert fixture_csv[1][83:] == export_csv[1][83:], 'Computer information are not equal'
assert fixture_csv[2][:17] == export_csv[2][:17], 'Computer information are not equal' assert fixture_csv[2][:17] == export_csv[2][:17], 'Computer information are not equal'
assert fixture_csv[2][20:80] == export_csv[2][20:80], 'Computer information are not equal' assert fixture_csv[2][18] == export_csv[2][18], 'Computer information are not equal'
assert fixture_csv[2][20:79] == export_csv[2][20:79], 'Computer information are not equal'
assert fixture_csv[2][80] == export_csv[2][80], 'Computer information are not equal'
assert fixture_csv[2][83:103] == export_csv[2][83:103], 'Computer information are not equal'
assert fixture_csv[2][104] == export_csv[2][104], 'Computer information are not equal'
assert fixture_csv[2][107:127] == export_csv[2][107:127], 'Computer information are not equal'
assert fixture_csv[2][128] == export_csv[2][128], 'Computer information are not equal'
assert fixture_csv[2][131:] == export_csv[2][131:], 'Computer information are not equal'
@pytest.mark.mvp @pytest.mark.mvp