Merge pull request #998 from SchrodingersGat/test-report-ordering

Bugfix: Test result ordering was reversed!
This commit is contained in:
Oliver 2020-09-28 09:02:52 +10:00 committed by GitHub
commit a3f59d8115
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1042,7 +1042,9 @@ class StockItem(MPTTModel):
as all named tests are accessible.
"""
results = self.getTestResults(**kwargs).order_by('-date')
# Filter results by "date", so that newer results
# will override older ones.
results = self.getTestResults(**kwargs).order_by('date')
result_map = {}