import pytest

from apps.sites.enums import Emissions, Environments
from apps.sites.models import Config


@pytest.fixture
def sri_config(db):
    config = {
        "code": "1460000290001",
        "company_name": "test",
        "trade_name": "test",
        "main_address": "test",
        "company_address": "test",
        "company_code": "001",
        "company_point_sale_code": "001",
        "special_taxpayer_resolution": "test",
        "withholding_agent_resolution": "test",
        "accounting_required": False,
        "environment": str(Environments.TESTING),
        "emission": str(Emissions.NORMAL),
        "iva_percent": 12,
    }
    data = {"sri_config": config}

    return Config.objects.create(**data)

c87419761ef7ea7c676db715006ba3c2db0556e3
<mask token>

<mask token>


@pytest.fixture
def sri_config(db):
    config = {'code': '1460000290001', 'company_name': 'test', 'trade_name':
        'test', 'main_address': 'test', 'company_address': 'test',
        'company_code': '001', 'company_point_sale_code': '001',
        'special_taxpayer_resolution': 'test',
        'withholding_agent_resolution': 'test', 'accounting_required': 
        False, 'environment': str(Environments.TESTING), 'emission': str(
        Emissions.NORMAL), 'iva_percent': 12}
    data = {'sri_config': config}
    return Config.objects.create(**data)

import pytest
from apps.sites.enums import Emissions, Environments
from apps.sites.models import Config


@pytest.fixture
def sri_config(db):
    config = {'code': '1460000290001', 'company_name': 'test', 'trade_name':
        'test', 'main_address': 'test', 'company_address': 'test',
        'company_code': '001', 'company_point_sale_code': '001',
        'special_taxpayer_resolution': 'test',
        'withholding_agent_resolution': 'test', 'accounting_required': 
        False, 'environment': str(Environments.TESTING), 'emission': str(
        Emissions.NORMAL), 'iva_percent': 12}
    data = {'sri_config': config}
    return Config.objects.create(**data)

import pytest

from apps.sites.enums import Emissions, Environments
from apps.sites.models import Config


@pytest.fixture
def sri_config(db):
    config = {
        "code": "1460000290001",
        "company_name": "test",
        "trade_name": "test",
        "main_address": "test",
        "company_address": "test",
        "company_code": "001",
        "company_point_sale_code": "001",
        "special_taxpayer_resolution": "test",
        "withholding_agent_resolution": "test",
        "accounting_required": False,
        "environment": str(Environments.TESTING),
        "emission": str(Emissions.NORMAL),
        "iva_percent": 12,
    }
    data = {"sri_config": config}

    return Config.objects.create(**data)
