Skip to content

Commit

Permalink
fix: remove created_at from test data
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjinkun committed Feb 1, 2021
1 parent f61e34b commit 1b9f483
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tests/data/bazel/record_test_result.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"status": 1,
"stdout": "",
"stderr": "",
"created_at": "2020-12-16T03:11:43.009Z",
"data": null
},
{
Expand All @@ -27,7 +26,6 @@
"status": 1,
"stdout": "",
"stderr": "",
"created_at": "2020-12-16T03:11:43.526Z",
"data": null
},
{
Expand All @@ -42,7 +40,6 @@
"status": 1,
"stdout": "",
"stderr": "",
"created_at": "2020-12-16T03:11:42.885Z",
"data": null
},
{
Expand All @@ -57,7 +54,6 @@
"status": 1,
"stdout": "",
"stderr": "",
"created_at": "2020-12-16T03:11:43.867Z",
"data": null
},
{
Expand All @@ -72,7 +68,6 @@
"status": 1,
"stdout": "",
"stderr": "",
"created_at": "2020-12-16T03:11:42.809Z",
"data": null
},
{
Expand All @@ -87,7 +82,6 @@
"status": 1,
"stdout": "",
"stderr": "",
"created_at": "2020-12-16T03:11:43.179Z",
"data": null
},
{
Expand All @@ -102,7 +96,6 @@
"status": 1,
"stdout": "",
"stderr": "",
"created_at": "2020-12-16T03:11:43.361Z",
"data": null
},
{
Expand All @@ -117,7 +110,6 @@
"status": 1,
"stdout": "",
"stderr": "",
"created_at": "2020-12-16T03:11:43.716Z",
"data": null
},
{
Expand All @@ -132,7 +124,6 @@
"status": 1,
"stdout": "",
"stderr": "",
"created_at": "2020-12-16T03:11:42.765Z",
"data": null
}
]
Expand Down
4 changes: 4 additions & 0 deletions tests/test_runners/test_bazel.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ def test_record_test(self):
b''.join(responses.calls[1].request.body)).decode())
expected = self.load_json_from_file(
self.test_files_dir.joinpath('record_test_result.json'))

for c in payload['events']:
del c['created_at']

self.assertEqual(payload, expected)

@responses.activate
Expand Down

0 comments on commit 1b9f483

Please sign in to comment.