| |
@@ -32,9 +32,7 @@
|
| |
import sys
|
| |
import tempfile
|
| |
|
| |
- import mock
|
| |
import pytest
|
| |
- from aiohttp import web
|
| |
|
| |
sys.path.insert(0, os.path.join(os.path.dirname(
|
| |
os.path.abspath(__file__)), '..'))
|
| |
@@ -80,10 +78,10 @@
|
| |
|
| |
|
| |
@pytest.fixture
|
| |
- async def cli(set_env, tmpdir, loop, test_client):
|
| |
+ async def cli(set_env, tmpdir, aiohttp_client):
|
| |
mdapi.CONFIG['DB_FOLDER'] = tmpdir
|
| |
app = await init_app()
|
| |
- return await test_client(app)
|
| |
+ return await aiohttp_client(app)
|
| |
|
| |
|
| |
|
| |
@@ -144,7 +142,7 @@
|
| |
|
| |
@pytest.mark.parametrize("action, package, status_code", [
|
| |
("requires", "R", 200),
|
| |
- ("provides", "perl(SetupLog)", 200),
|
| |
+ ("provides", "perl(CGI)", 200),
|
| |
("provides", "R", 200),
|
| |
("obsoletes", "cabal2spec", 200),
|
| |
("conflicts", "mariadb", 200),
|
| |
The
$PREFIX
is/was used when mdapi is deployed not at the root of the server. This is no longer and issue for us, but it may still be if someone wanted to deploy it somewhere else.