Skip to content

Commit

Permalink
Fix tests (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea authored Mar 4, 2024
1 parent b5755c7 commit 2b9aba5
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ py3-ruamel.yaml \

RUN \
apk add --update --no-cache \
${BUILD_DEPS} && \
pip3 install -U pip
${BUILD_DEPS}

COPY . /root/code/
WORKDIR /root/code/
RUN \
python3 --version && \
python3 -m venv venv && \
. venv/bin/activate && \
python3 -m pip install ".[test]" && \
python3 -m pytest
2 changes: 1 addition & 1 deletion molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
dependency:
name: galaxy
driver:
name: delegated
name: default
platforms:
- name: instance
provisioner:
Expand Down
1 change: 0 additions & 1 deletion readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ build:
python: "3.11"

python:
system_packages: false
install:
- method: pip
path: .
Expand Down
6 changes: 6 additions & 0 deletions test/test_func.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
"""Functional tests for subprocess-tee library."""

import subprocess
import sys

import pytest


@pytest.mark.skipif(
sys.version_info < (3, 9), reason="molecule test requires python 3.9+"
)
def test_molecule() -> None:
"""Ensures molecule does display output of its subprocesses."""
result = subprocess.run(
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ passenv =
setenv =
PIP_DISABLE_VERSION_CHECK=1
PYTEST_REQPASS=15
py38: PYTEST_REQPASS=14
PYTHONDONTWRITEBYTECODE=1
PYTHONUNBUFFERED=1
commands =
Expand Down

0 comments on commit 2b9aba5

Please sign in to comment.