Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1769)

Issue 109400043: Added test for +tickets view

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 10 months ago by sksaurabhkathpalia
Modified:
9 years, 10 months ago
Reviewers:
dimazest
Visibility:
Public.

Description

Added test for +tickets view

Patch Set 1 #

Total comments: 10

Patch Set 2 : Made changes as per the comments #

Patch Set 3 : Used whoosh query #

Patch Set 4 : #

Total comments: 6

Patch Set 5 : Created ticket by simple python method #

Patch Set 6 : #

Total comments: 1

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -8 lines) Patch
M MoinMoin/log.py View 1 2 3 4 5 6 2 chunks +7 lines, -7 lines 0 comments Download
M MoinMoin/templates/tickets.html View 1 1 chunk +1 line, -1 line 0 comments Download
A _ui_tests/test_tickets.py View 1 2 3 4 5 6 1 chunk +65 lines, -0 lines 0 comments Download

Messages

Total messages: 4
dimazest
there are more things to come https://codereview.appspot.com/109400043/diff/1/_ui_tests/test_tickets.py File _ui_tests/test_tickets.py (right): https://codereview.appspot.com/109400043/diff/1/_ui_tests/test_tickets.py#newcode3 _ui_tests/test_tickets.py:3: import pytest @pytest.yield_fixture ...
9 years, 10 months ago (2014-07-02 07:38:55 UTC) #1
dimazest
https://codereview.appspot.com/109400043/diff/20003/_ui_tests/test_tickets.py File _ui_tests/test_tickets.py (right): https://codereview.appspot.com/109400043/diff/20003/_ui_tests/test_tickets.py#newcode12 _ui_tests/test_tickets.py:12: these empty lines look ugly, maybe it worth getting ...
9 years, 10 months ago (2014-07-02 13:45:08 UTC) #2
dimazest
https://codereview.appspot.com/109400043/diff/20003/_ui_tests/test_tickets.py File _ui_tests/test_tickets.py (right): https://codereview.appspot.com/109400043/diff/20003/_ui_tests/test_tickets.py#newcode8 _ui_tests/test_tickets.py:8: @pytest.yield_fixture @pytest.fixture https://codereview.appspot.com/109400043/diff/20003/_ui_tests/test_tickets.py#newcode9 _ui_tests/test_tickets.py:9: def driver(): def driver(request): https://codereview.appspot.com/109400043/diff/20003/_ui_tests/test_tickets.py#newcode12 ...
9 years, 10 months ago (2014-07-03 08:48:09 UTC) #3
dimazest
9 years, 10 months ago (2014-07-03 12:39:59 UTC) #4
https://codereview.appspot.com/109400043/diff/80001/_ui_tests/test_tickets.py
File _ui_tests/test_tickets.py (right):

https://codereview.appspot.com/109400043/diff/80001/_ui_tests/test_tickets.py...
_ui_tests/test_tickets.py:12: def driver(request):
the previous way of writing fixtures was using funcargs:

def pytest_funcarg__driver(request):
    """A driver for a web browser."""
    driver = webdriver.Firefox()
    request.addfinalizer(driver.quit)
    return driver

this should work.

remember that MoinMoin/conftest.py needs to be copied to /conftest.py, the the
application context is set up.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b