old_contents: from uuid import uuid4
  
  import pytest
  
  
  @pytest.fixture
  def create_user_request(app, test_client):
      async def wrapper(user_data):
          api = await test_client(app)
          response = await api.post('users:create', json=user_data)
          return response.status, await response.json()
      return wrapper
  
  
  @pytest.fixture
  def login_request(app, test_client):
      async def wrapper(user_data):
          api = await test_client(app)
          response = await api.post(api.token_url, json=user_data)
          return response.status, await response.json()
      return wrapper
  
  
  @pytest.fixture
  def get_activation_code(app):
      async def wrapper(email):
          activation_request = await app.m.user_activation_request.get_by_email(email)
          if activation_request:
              return activation_request.code
      return wrapper
  
  
  @pytest.fixture
  def new_user_data():
      return {
          'email': '{}@example.com'.format(uuid4()),
          'password': 'Pa55w0rd',
          'g-recaptcha-response': ''
      }
  
new_contents: from uuid import uuid4
  
  import pytest
  
  
  @pytest.fixture
  def create_user_request(app, test_client):
      async def wrapper(user_data):
          api = await test_client(app)
          response = await api.post('users:create', json=user_data)
          return response.status, await response.json()
      return wrapper
  
  
  @pytest.fixture
  def login_request(app, test_client):
      async def wrapper(user_data):
          api = await test_client(app)
          response = await api.post(api.token_url, json=user_data)
          return response.status, await response.json()
      return wrapper
  
  
  @pytest.fixture
  def get_activation_code(app):
      async def wrapper(email):
          activation_request = await app.m.user_activation_request.get_by_email(email)
          if activation_request:
              return activation_request.code
      return wrapper
  
  
  @pytest.fixture
  def user():
      return {
          'email': 'user@example.com',
          'password': 'password',
      }
  
  
  @pytest.fixture
  def new_user_data():
      return {
          'email': '{}@example.com'.format(uuid4()),
          'password': 'Pa55w0rd',
          'g-recaptcha-response': ''
      }
  
subject: Add 'user' pytest fixture