diff options
author | Ryan Roden-Corrent <ryan@rcorre.net> | 2017-11-02 11:48:49 -0400 |
---|---|---|
committer | Florian Bruhin <git@the-compiler.org> | 2017-11-04 15:21:57 +0100 |
commit | 12c35ff8365c368a9464ae5fcac823210d8ae738 (patch) | |
tree | d92bff8130139d3a4729111517f41df8a91e50e7 | |
parent | b33bb94593c7539667150cf4136400740dec8151 (diff) | |
download | qutebrowser-12c35ff8365c368a9464ae5fcac823210d8ae738.tar.gz qutebrowser-12c35ff8365c368a9464ae5fcac823210d8ae738.zip |
Don't check date string in test_histcategory.
We really just need to check that the row exists here, the date doesn't
matter. Checking the date here is actually flaky with regards to time.
When running locally at 11:50 EST, it failed with:
```
assert self._model.data(self._model.index(row, col)) == item
AssertionError: assert '1969-12-31' == '1970-01-01'
- 1969-12-31
+ 1970-01-01
```
It was wrong to assume that an atime of 0 would always format to
1970-01-01.
(cherry picked from commit a9926e44f0b2f88a4ffd772be8b41d82f5b9afd5)
-rw-r--r-- | tests/unit/completion/test_histcategory.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/completion/test_histcategory.py b/tests/unit/completion/test_histcategory.py index c093513cb..834b3a5a3 100644 --- a/tests/unit/completion/test_histcategory.py +++ b/tests/unit/completion/test_histcategory.py @@ -147,7 +147,7 @@ def test_remove_rows(hist, model_validator): cat.set_pattern('') hist.delete('url', 'foo') cat.removeRows(0, 1) - model_validator.validate([('bar', 'Bar', '1970-01-01')]) + model_validator.validate([('bar', 'Bar')]) def test_remove_rows_fetch(hist): |