"""Tests for auth.py."""

import pytest

import ckan.tests.factories as factories
import ckan.tests.helpers as test_helpers
import ckan.model as model


@pytest.mark.ckan_config("ckan.plugins", "{{cookiecutter.project_shortname}}")
@pytest.mark.usefixtures("with_request_context", "with_plugins", "clean_db")
def test_{{cookiecutter.project_shortname}}_get_sum():
    user = factories.User()
    context = {
        "user": user["name"],
        "model": model
    }
    assert test_helpers.call_auth(
        "{{cookiecutter.project_shortname}}_get_sum", context=context)

"""Tests for auth.py."""

import pytest

import ckan.tests.factories as factories
import ckan.tests.helpers as test_helpers
import ckan.model as model


@pytest.mark.ckan_config("ckan.plugins", "{{cookiecutter.project_shortname}}")
@pytest.mark.usefixtures("with_request_context", "with_plugins", "clean_db")
def test_{{cookiecutter.project_shortname}}_get_sum():
    user = factories.User()
    context = {
        "user": user["name"],
        "model": model
    }
    assert test_helpers.call_auth(
        "{{cookiecutter.project_shortname}}_get_sum", context=context)

Tests for auth.py.