Is there a way in pytest to xfail a test when a specific parametrization condition is met? Note the parametrization is on fixture, not using mark.parametrize. f
I have some project, that on my local pc by windows correct work. When I copy this project through gitlab on server, I don't see some folders. So, tox -r comman
I'm trying to test my view which requires csv_file and one parameter in request, but getting error "details": {"csv_file": ["The submitted data was not a file.
I've just created my first Python package using Poetry using the usual poetry new mypackage command. My problem is that pytest does not execute any test when I
I'm writing a test suite for a class that needs variables from a util package I have defined: # util/__init__.py codes = None def load_codes(): """Populat
I have a simple python script that leads to a pandas SettingsWithCopyWarning: import logging import pandas as pd def method(): logging.info("info") l
I have a code base (shown below), with a src directory containing the code, that I have developed, alongside with some supporting Third Party libs in tp directo
Every time I'm trying to run Pytest with debugger - unexpected "-k" argument is passing automatically and this causes run error. I can't find this argument anyw
Whenever pytest is outputting the tests that it has, it always prints out the parameter values, but never the names of the variables. For example: PASSED test_c
I am using VSC with pytest to debug my code. This worked fine until I added a submodule which I used in the past. The Codebase in the submodule has not the same
Good afternoon, I am developing some unit tests for my Flask application. It is my first time trying to develop unit tests for a Flask app, but I am currently g
I have some parameters coming from a JSON file, and some fixtures in my conftest.py I would like to iterate all the option scenarios from my list and create my
I am trying to run pytest in a django project with it is showing me error of no module loading. I have created init.py in test folders, but that also not worked
What are 'rf' and 'user_context' parameters and when are they assigned? import pytest from rest_framework import status from rest_framework.reverse import rever
So I'm trying to test an endpoint in flask that I need to call multiple times in one test. The issue I am having is that on the second request the objects I pla
@pytest.fixture def d_service(): c = DService() return c # @pytest.mark.asyncio # tried it too async def test_get_file_list(d_service): files = aw
I tried to write a test for this but I keep getting an error that the list is not callable. How can I patch nodes.items() so that items returns a list? # Get li
In the code below, what I get is a generator object <generator object a at 0x7feb40b2d7b0> from playwright.sync_api import sync_playwright def get_playw
I read somewhere on SO that you should not test the decorator but the functionality of the wrapped function. Nevertheless there might be a shorter way of testi
A day ago selenium updated their standalone-images (https://hub.docker.com/search?q=selenium&type=image) and at the same time selenium 4.0.0 was released on