No Description

test_example.py 584B

12345678910111213141516171819202122
  1. # -*- encoding: utf-8 -*-
  2. """
  3. License: MIT
  4. Copyright (c) 2019 - present AppSeed.us
  5. """
  6. from tests.test_base import check_pages, check_blueprints
  7. @check_pages('/', '/home/index')
  8. def test_pages(base_client):
  9. # do something
  10. base_client.post('/', data={})
  11. # the pages are tested (GET request: 200) afterwards by the
  12. # @check_pages decorator
  13. @check_blueprints('/forms', '/ui')
  14. def test_blueprints(base_client):
  15. # do something
  16. base_client.post('/', data={})
  17. # the blueprints are tested (GET request: 200) afterwards by the
  18. # @check_blueprints decorator