[WIP] Add unit tests for djblets.log.views
Review Request #11234 — Created Oct. 19, 2020 and discarded
added more test for the iter_log_lines
manual testing all tests passed
Summary | ID | Author |
---|---|---|
f55fa3695f8d8aa7434ef7929e73ef8ae7409538 | TATENDA CHIVASA |
Description | From | Last Updated |
---|---|---|
Please make sure your summary and description match our standards: https://www.notion.so/reviewboard/Writing-Good-Change-Descriptions-10529e7c207743fa8ca90153d4b21fea |
david | |
It looks like a whole bunch of temporary and ephemeral files got added to this change. Can you reset (using … |
david | |
In your summary, there's a typo (djiblets -> djblets). This should probably also be marked as WIP for now, since … |
david | |
W291 trailing whitespace |
reviewbot | |
F401 'sys' imported but unused |
reviewbot | |
W291 trailing whitespace |
reviewbot | |
F403 'from djblets.log.views import *' used; unable to detect undefined names |
reviewbot | |
W291 trailing whitespace |
reviewbot | |
E302 expected 2 blank lines, found 1 |
reviewbot | |
E303 too many blank lines (2) |
reviewbot | |
F405 'parse_timestamp' may be undefined, or defined from star imports: djblets.log.views |
reviewbot | |
E501 line too long (81 > 79 characters) |
reviewbot | |
F405 'parse_timestamp' may be undefined, or defined from star imports: djblets.log.views |
reviewbot | |
E501 line too long (99 > 79 characters) |
reviewbot | |
F405 'parse_timestamp' may be undefined, or defined from star imports: djblets.log.views |
reviewbot | |
E501 line too long (93 > 79 characters) |
reviewbot | |
F405 'build_query_string' may be undefined, or defined from star imports: djblets.log.views |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
W293 blank line contains whitespace |
reviewbot | |
W291 trailing whitespace |
reviewbot | |
F405 'build_query_string' may be undefined, or defined from star imports: djblets.log.views |
reviewbot | |
E501 line too long (101 > 79 characters) |
reviewbot | |
E202 whitespace before ')' |
reviewbot | |
F841 local variable 'one_week_ago' is assigned to but never used |
reviewbot | |
F405 'settings' may be undefined, or defined from star imports: djblets.log.views |
reviewbot | |
F405 'settings' may be undefined, or defined from star imports: djblets.log.views |
reviewbot | |
F405 'settings' may be undefined, or defined from star imports: djblets.log.views |
reviewbot | |
E127 continuation line over-indented for visual indent |
reviewbot | |
F405 'settings' may be undefined, or defined from star imports: djblets.log.views |
reviewbot | |
E251 unexpected spaces around keyword / parameter equals |
reviewbot | |
E203 whitespace before ',' |
reviewbot | |
E501 line too long (96 > 79 characters) |
reviewbot | |
W293 blank line contains whitespace |
reviewbot | |
These files are showing up as changed because you've pulled on master but haven't rebased your branch. You'll want to … |
david | |
F401 'sys' imported but unused |
reviewbot | |
W291 trailing whitespace |
reviewbot | |
F403 'from djblets.log.views import *' used; unable to detect undefined names |
reviewbot | |
W291 trailing whitespace |
reviewbot | |
E302 expected 2 blank lines, found 1 |
reviewbot | |
E303 too many blank lines (2) |
reviewbot | |
F405 'parse_timestamp' may be undefined, or defined from star imports: djblets.log.views |
reviewbot | |
E501 line too long (81 > 79 characters) |
reviewbot | |
F405 'parse_timestamp' may be undefined, or defined from star imports: djblets.log.views |
reviewbot | |
E501 line too long (99 > 79 characters) |
reviewbot | |
F405 'parse_timestamp' may be undefined, or defined from star imports: djblets.log.views |
reviewbot | |
E501 line too long (93 > 79 characters) |
reviewbot | |
F405 'build_query_string' may be undefined, or defined from star imports: djblets.log.views |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
W293 blank line contains whitespace |
reviewbot | |
W291 trailing whitespace |
reviewbot | |
F405 'build_query_string' may be undefined, or defined from star imports: djblets.log.views |
reviewbot | |
E501 line too long (101 > 79 characters) |
reviewbot | |
E202 whitespace before ')' |
reviewbot | |
F841 local variable 'one_week_ago' is assigned to but never used |
reviewbot | |
F405 'settings' may be undefined, or defined from star imports: djblets.log.views |
reviewbot | |
F405 'settings' may be undefined, or defined from star imports: djblets.log.views |
reviewbot | |
F405 'settings' may be undefined, or defined from star imports: djblets.log.views |
reviewbot | |
F405 'settings' may be undefined, or defined from star imports: djblets.log.views |
reviewbot | |
E127 continuation line over-indented for visual indent |
reviewbot | |
E501 line too long (96 > 79 characters) |
reviewbot | |
E203 whitespace before ',' |
reviewbot | |
E251 unexpected spaces around keyword / parameter equals |
reviewbot | |
W293 blank line contains whitespace |
reviewbot | |
E303 too many blank lines (3) |
reviewbot | |
F401 'sys' imported but unused |
reviewbot | |
W291 trailing whitespace |
reviewbot | |
F403 'from djblets.log.views import *' used; unable to detect undefined names |
reviewbot | |
W291 trailing whitespace |
reviewbot | |
E302 expected 2 blank lines, found 1 |
reviewbot | |
E303 too many blank lines (2) |
reviewbot | |
F405 'parse_timestamp' may be undefined, or defined from star imports: djblets.log.views |
reviewbot | |
E303 too many blank lines (2) |
reviewbot | |
E501 line too long (81 > 79 characters) |
reviewbot | |
F405 'parse_timestamp' may be undefined, or defined from star imports: djblets.log.views |
reviewbot | |
E303 too many blank lines (2) |
reviewbot | |
E501 line too long (99 > 79 characters) |
reviewbot | |
F405 'parse_timestamp' may be undefined, or defined from star imports: djblets.log.views |
reviewbot | |
E501 line too long (93 > 79 characters) |
reviewbot | |
E303 too many blank lines (2) |
reviewbot | |
F405 'build_query_string' may be undefined, or defined from star imports: djblets.log.views |
reviewbot | |
E231 missing whitespace after ',' |
reviewbot | |
W293 blank line contains whitespace |
reviewbot | |
E303 too many blank lines (2) |
reviewbot | |
W291 trailing whitespace |
reviewbot | |
F405 'build_query_string' may be undefined, or defined from star imports: djblets.log.views |
reviewbot | |
E501 line too long (101 > 79 characters) |
reviewbot | |
E202 whitespace before ')' |
reviewbot | |
E303 too many blank lines (2) |
reviewbot | |
F405 'settings' may be undefined, or defined from star imports: djblets.log.views |
reviewbot | |
F405 'settings' may be undefined, or defined from star imports: djblets.log.views |
reviewbot | |
F405 'settings' may be undefined, or defined from star imports: djblets.log.views |
reviewbot | |
E127 continuation line over-indented for visual indent |
reviewbot | |
F405 'settings' may be undefined, or defined from star imports: djblets.log.views |
reviewbot | |
E251 unexpected spaces around keyword / parameter equals |
reviewbot |
-
I was getting a bunch of formatting errors at once too on my commits. I found running the following command helpful before I committed new changes :)
flake8 --ignore E121,E125,E129,E241 --max-line-length 79
- Commits:
-
Summary ID Author e190529dc708aedfb6426f6be888f8053a434427 TATENDA CHIVASA 5b9396bca2a5d986628fea4d1bbb1f6cc65c3a36 TATENDA CHIVASA cc288127565dc78220ce728704bc6c654a4c7dca TATENDA CHIVASA c89682e3e4f2d598e1cae0bd23de5ba7f44055ee TATENDA CHIVASA 21945d6415087bce4c217d20763761656b9934ee TATENDA CHIVASA d4ec889b4efaab815924d5a880df30fd7aaf29b2 TATENDA CHIVASA
Checks run (1 failed, 1 succeeded)
flake8
-
Warning: Showing 30 of 64 failures.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Please make sure your summary and description match our standards: https://www.notion.so/reviewboard/Writing-Good-Change-Descriptions-10529e7c207743fa8ca90153d4b21fea
-
In your summary, there's a typo (djiblets -> djblets). This should probably also be marked as WIP for now, since it seems like there's still a fair bit of work to do.
-
These files are showing up as changed because you've pulled on master but haven't rebased your branch. You'll want to rebase your branch on top of the latest master (
git rebase master branchname
) and then post again.
- Summary:
-
add unit tests for djiblets.log.views[WIP] add unit tests for djblets.log.views
- Commits:
-
Summary ID Author d4ec889b4efaab815924d5a880df30fd7aaf29b2 TATENDA CHIVASA f55fa3695f8d8aa7434ef7929e73ef8ae7409538 TATENDA CHIVASA - Diff:
-
Revision 3 (+428)
Checks run (1 failed, 1 succeeded)
flake8
-
Warning: Showing 30 of 94 failures.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-