Files @ d49173725a7b
Branch filter:

Location: NPO-Accounting/conservancy_beancount/tests/conftest.py

Brett Smith
tests: Ignore the DeprecationWarning from the socks module.

The socks package in Debian buster does a deprecated import from
the collections module. That's not directly relevant to our own
code (Conservancy has no business requirement for SOCKS support)
so ignore it.
import os

import pytest

from . import testutil

@pytest.fixture(scope='session', autouse=True)
def clean_environment():
    os.environ.pop('CONSERVANCY_REPOSITORY', None)
    os.environ.pop('RTAUTH', None)
    os.environ.pop('RTPASSWD', None)
    os.environ.pop('RTSERVER', None)
    os.environ.pop('RTUSER', None)
    os.environ['HOME'] = str(testutil.test_path('userconfig'))