Skip to content
Snippets Groups Projects
Commit dc0b60e6 authored by João Marques's avatar João Marques
Browse files

Remove build fixture from tests to see if image is built in CI

parent 47f8f464
No related branches found
No related tags found
No related merge requests found
......@@ -2,9 +2,7 @@ import json
import os
from contextlib import contextmanager
from logging import info
from pathlib import Path
import pytest
from plumbum import local
from plumbum.cmd import docker
......@@ -12,14 +10,6 @@ DOCKER_REPO = os.environ.get("DOCKER_REPO", "docker-socket-proxy")
IMAGE_NAME = f"{DOCKER_REPO}:local"
@pytest.fixture(autouse=True, scope="session")
def docker_image():
"""Build local docker image once before starting test suite."""
info(f"Building {IMAGE_NAME}...")
docker("build", "-t", IMAGE_NAME, Path(__file__).parent.parent)
return IMAGE_NAME
@contextmanager
def proxy(**env_vars):
"""A context manager that starts the proxy with the specified env.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment