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
I'm not sure why this is so difficult to get going, but I'm new to Python and I'm trying to get any unit test framework to run tests, but if I test a file that
I'm trying to test my database in my FastAPI app. from fastapi.testclient import TestClient from sqlalchemy import create_engine from sqlalchemy.orm import sess
UPDATE: I've raised this with JetBrains. They have responded to say it's not configurable and merely a usability issue and not a bug in PyCharm. I've questioned
I am using django to build my website and I have used django-pytest to test my apps but I have got this error Note I am usign python 3.9 =======================
I was following the freecodecamp smart contract course, i was in lesson 6 brownie Fund me/ when i was setting up my test it showed me the next error: platform w
How can I exactly match the Pydantic schema? The suggested method is to attempt a dictionary conversion to the Pydantic model but that's not a one-one match. I
I'm starting to learn automated testing. When I run a test I want to get a specific text ('No Add to Cart button') on error of selenium NoSuchElementException I
Why is functional style testing facilitating testing compared to class based testing? Is this just additional library specific functionality or are there any ge
I am running this test case command below py.test --cov-report term-missing --cov=pipelines/core/comp/plugins/abc/ --noconftest pipelines/core/comp/test/plugins
I'm using VSCode Test Explorer to run my Python unit tests. There was a bug in my code and my tested method never finishes. How do I interrupt my test? I can't
My environment is : Python 3.9.9 Pytest 6.2.5 Brownie 1.17.1 I'm working on the test_fund_me.py from Patrick Collins' Smart Contract tutorial on Youtube; at thi
I'm trying to debug pytest tests in Visual Studio 2022. I have the tests showing up in test explorer and when I run them they execute, however when I set a bre
I am pretty new at unit tests and have seen fairly basic examples of mocks and doing asserts that test the return value of a function. I have a fairly advanced
I have a set of pytest tests that I run on multiple remotely-connected (embedded) devices (that do not have pytest on itself). Basically, the tests secure-copy
Example: from pytest import fixture, skip @fixture(params=['a', 'b']) def f1(request): yield request.param params = [('a', 1), ('a', 2), ('b', 10), ('b',
I have a simple python dockerized application whose structure is /src - server.py - test_server.py Dockerfile requirements.txt in which the docker base image
I'm writing the conway's game code in python. My code is like this: def update_board(board: list[list[int]]) -> list[list[int]]: rows = len(board) co