/ lib / test.py
test.py
 1  import pytest
 2  
 3  
 4  class ViewTestMixin(object):
 5      """
 6      Automatically load in a session and client, this is common for a lot of
 7      tests that work with views.
 8      """
 9  
10      @pytest.fixture(autouse=True)
11      def set_common_fixtures(self, session, client):
12          self.session = session
13          self.client = client