Skip to content

Commit 3396679

Browse files
author
dmy.berezovskyi
committed
fix ruff
1 parent a2b4965 commit 3396679

File tree

4 files changed

+32
-1
lines changed

4 files changed

+32
-1
lines changed

Dockerfile

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Use an official Python image compatible with arm64 architecture
2+
FROM --platform=linux/arm64 python:3.12-slim
3+
4+
# Set environment variables
5+
ENV POETRY_VERSION=1.8.1
6+
ENV PATH="/root/.local/bin:$PATH"
7+
ENV PYTHONPATH="pytest-python-selenium-framework"
8+
9+
# Install system dependencies
10+
RUN apt-get update && apt-get install -y \
11+
build-essential \
12+
curl \
13+
&& rm -rf /var/lib/apt/lists/*
14+
15+
# Install Poetry
16+
RUN curl -sSL https://install.python-poetry.org | python3 -
17+
18+
# Set the working directory
19+
WORKDIR pytest-python-selenium-framework
20+
21+
# Copy the poetry files to the container
22+
COPY pyproject.toml poetry.lock* ./
23+
24+
# Install the dependencies using Poetry
25+
RUN poetry install --no-root --only main # Use --only main to skip dev dependencies
26+
27+
# Copy the rest of the application code
28+
COPY . .
29+
30+
# Specify the command to run the tests
31+
CMD ["poetry", "run", "pytest"]

src/pageobjects/__init__.py

Whitespace-only changes.

src/pageobjects/text/__init__.py

Whitespace-only changes.

tests/test_fill_form/test_fill_form.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from pageobjects.text.fill_form import FillForm
1+
from src.pageobjects.text.fill_form import FillForm
22

33

44
class TestFillForm:

0 commit comments

Comments
 (0)