Created
December 3, 2015 08:33
-
-
Save BeyondEvil/082bc41c55070b532e04 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@pytest.mark.usefixtures("small_universe", "test_driver") | |
@pytest.mark.tags("boards") | |
class TestBoards: | |
def test_create_card(self, test_db): | |
_card = Common.CARD_2 | |
current_page = BoardPage(self.test_driver, test_db) | |
current_page.go_to_page(test_db.get_default('User').identifier, DoPlan.PRO_PROJECT, DoPlan.PRO_BOARD) | |
current_page.create_card(_card) | |
current_page = CardDetailsPane(self.test_driver, test_db) | |
Validation.assert_equal(_card, current_page.get_title()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@pytest.fixture(scope='module', autouse=True) | |
def test_db(request): | |
""" | |
Creates a TestDataCollection instance which houses all the data representation objects. | |
:param request: py.test request module | |
:return: TestDataCollection instance | |
""" | |
from test_automation.representations.test_data_collection import TestDataCollection | |
tdc = TestDataCollection() | |
request.module.tdc = tdc | |
request.addfinalizer(tdc.clear) | |
return tdc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment