Skip to content
Snippets Groups Projects

package.debian: Re-implement debian loader within the package loader mechanism

2 files
+ 24
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -3,12 +3,22 @@
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
import os
import pytest
from os import path
@pytest.fixture
def swh_config(monkeypatch, datadir):
conffile = path.join(datadir, 'loader.yml')
conffile = os.path.join(datadir, 'loader.yml')
monkeypatch.setenv('SWH_CONFIG_FILENAME', conffile)
return conffile
@pytest.fixture(autouse=True, scope='session')
def swh_proxy():
"""Automatically inject this fixture in all tests to ensure no outside
connection takes place.
"""
os.environ['http_proxy'] = 'http://localhost:999'
os.environ['https_proxy'] = 'http://localhost:999'
Loading