Skip to content

Instantly share code, notes, and snippets.

@BeyondEvil
Created December 3, 2015 08:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BeyondEvil/082bc41c55070b532e04 to your computer and use it in GitHub Desktop.
Save BeyondEvil/082bc41c55070b532e04 to your computer and use it in GitHub Desktop.
@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())
@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