File tree Expand file tree Collapse file tree 8 files changed +4
-82
lines changed Expand file tree Collapse file tree 8 files changed +4
-82
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ RUN groupadd --gid $USER_GID $USERNAME \
2525# Set up the Python development environment
2626WORKDIR /app
2727COPY pyproject.toml poetry.lock ./
28- RUN python -m pip install poetry && \
28+ RUN python -m pip install -U pip poetry && \
2929 poetry config virtualenvs.create false && \
3030 poetry install
3131
Original file line number Diff line number Diff line change 4444
4545 - name : Install dependencies
4646 run : |
47- python -m pip install poetry
47+ python -m pip install -U pip poetry
4848 poetry config virtualenvs.create false
4949 poetry install
5050
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -10,11 +10,3 @@ show_missing = True
1010
1111[pylint.'MESSAGES CONTROL']
1212disable =E1101
13-
14- [green]
15- verbose =3
16- processes =1
17- run-coverage =1
18- termcolor =1
19- # minimum-coverage=95
20- # junit-report=./unittests.xml
Original file line number Diff line number Diff line change 1- # setup configuration for tools
2- [tool:pytest]
3- minversion = 6.0
4- addopts = --pspec --cov =service --cov-fail-under =95 --disable-warnings
5- testpaths =
6- tests
7- integration
8-
9- [green]
10- verbose =3
11- processes =1
12- run-coverage =1
13- termcolor =1
14- minimum-coverage =95
15- # junit-report=./unittests.xml
1+ # Code Quality
162
173[flake8]
184max-line-length = 127
195per-file-ignores =
206 */__init__.py: F401 E402
21-
22- [pylint.'MESSAGES CONTROL']
23- disable =E1101
24-
25- [coverage:run]
26- source = service
27- omit =
28- venv/*
29- .venv/*
30-
31- [coverage:report]
32- show_missing = true
33- exclude_lines =
34- pragma: no cover
35- pragma: no branch
36- pass
37- subprocess.CalledProcessError
38- sys.exit
39- if __name__ == .__main__.:
40- ignore_errors = true
41-
42- [coverage:xml]
43- output =./coverage.xml
44-
45- [coverage:html]
46- title = ' Test Coverage Report'
Original file line number Diff line number Diff line change 1- # Copyright 2016, 2019 John J. Rofrano. All Rights Reserved.
1+ # Copyright 2016, 2024 John J. Rofrano. All Rights Reserved.
22#
33# Licensed under the Apache License, Version 2.0 (the "License");
44# you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change 1414
1515"""
1616Test cases for Pet Model
17-
18- Test cases can be run with:
19- nosetests
20- coverage report -m
21-
22- While debugging just these tests it's convenient to use this:
23- nosetests --stop tests/test_pets.py:TestPetModel
24-
2517"""
2618import os
2719import logging
Original file line number Diff line number Diff line change 1414
1515"""
1616Pet API Service Test Suite
17-
18- Test cases can be run with the following:
19- nosetests -v --with-spec --spec-color
20- coverage report -m
21- codecov --token=$CODECOV_TOKEN
22-
23- While debugging just these tests it's convenient to use this:
24- nosetests --stop tests/test_service.py:TestPetService
2517"""
2618
2719import os
You can’t perform that action at this time.
0 commit comments