Guest User

Untitled

a guest
Apr 22nd, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. import pytest
  3. from group import Group
  4. from application import Application
  5.  
  6.  
  7. @pytest.fixture
  8. def app(request):
  9. fixture = Application()
  10. request.addfinalizer(fixture.destroy)
  11. return fixture
  12.  
  13.  
  14. def test_python_lesson_1_task_1(app):
  15. app.open_home_page()
  16. app.login(username="admin", password="secret")
  17. app.open_groups_page()
  18. app.create_group(Group(name="ccc", header="ccc", footer="ccc"))
  19. app.return_to_group_page()
  20. app.logout()
  21.  
  22. def test_python_lesson_empty_1_task_1(app):
  23. app.open_home_page()
  24. app.login(username="admin", password="secret")
  25. app.open_groups_page()
  26. app.create_group(Group(name="", header="", footer=""))
  27. app.return_to_group_page()
  28. app.logout()
Add Comment
Please, Sign In to add comment