Skip to content

Commit 795a4db

Browse files
Fixed all pytest warnings at the end of a test run (#73)
<!-- markdownlint-disable-next-line first-line-heading --> ## Description <!-- Describe your changes in detail. --> Resolving pytest warnings by adding markers in pytest.ini and marking classes beginning with test as non-tests ## Context <!-- Why is this change required? What problem does it solve? --> Resolved pytest warnings at the end of a test run. ## Type of changes <!-- What types of changes does your code introduce? Put an `x` in all the boxes that apply. --> - [x] Refactoring (non-breaking change) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would change existing functionality) - [ ] Bug fix (non-breaking change which fixes an issue) ## Checklist <!-- Go over all the following points, and put an `x` in all the boxes that apply. --> - [x] I am familiar with the [contributing guidelines](https://github.com/nhs-england-tools/playwright-python-blueprint/blob/main/CONTRIBUTING.md) - [x] I have followed the code style of the project - [ ] I have added tests to cover my changes (where appropriate) - [ ] I have updated the documentation accordingly - [ ] This PR is a result of pair or mob programming --- ## Sensitive Information Declaration To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including [PII (Personal Identifiable Information) / PID (Personal Identifiable Data)](https://digital.nhs.uk/data-and-information/keeping-data-safe-and-benefitting-the-public) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter. - [x] I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.
1 parent aac631e commit 795a4db

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pages/datasets/investigation_dataset_page.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ class PractitionerOptions(StrEnum):
242242

243243
class TestingClinicianOptions(StrEnum):
244244
"""Enum for testing clinician options"""
245+
__test__ = False
245246

246247
BORROWING_PROPERTY = "886"
247248
CLAUSE_CHARTING = "918"

pytest.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,6 @@ markers =
3434
compartment3: only for compartment 3
3535
compartment4: only for compartment 4
3636
compartment5: only for compartment 5
37+
compartment6: only for compartment 6
3738
compartment1_plan_creation: to run the plan creation for compartment 1
3839
vpn_required: for tests that require a VPN connection

0 commit comments

Comments
 (0)