StackOverflow Questions for Tag: python-unittest

wavesinaroom
wavesinaroom

Reputation: 191

Failed creating mock folders with pyfakefs

Score: 1

Views: 45

Answers: 1

Read More
Julian
Julian

Reputation: 613

How to patch a conditionally imported module in pytest?

Score: 0

Views: 42

Answers: 0

Read More
Blackbriar
Blackbriar

Reputation: 507

Visual Studio Code does not find python unit tests in sub folders

Score: 0

Views: 39

Answers: 1

Read More
Jingguo Yao
Jingguo Yao

Reputation: 8006

Python unittest.TestCase object has no attribute 'runTest'

Score: 40

Views: 34279

Answers: 6

Read More
scotscotmcc
scotscotmcc

Reputation: 3123

Mock date.today() but leave other date methods alone

Score: 2

Views: 83

Answers: 3

Read More
u09j
u09j

Reputation: 11

How do I mock the function in a module which is being called inside it from another function?

Score: -1

Views: 43

Answers: 1

Read More
smark
smark

Reputation: 15

How to mock in python an inherited attribute that contains the reference to an object

Score: -1

Views: 34

Answers: 1

Read More
Jonathan
Jonathan

Reputation: 11375

How to programmatically run Python unittest tests

Score: 9

Views: 2773

Answers: 1

Read More
user2766739
user2766739

Reputation: 477

How to use Python Unittest TearDownClass with TestResult.wasSuccessful()

Score: 1

Views: 9004

Answers: 2

Read More
Mukund Jalan
Mukund Jalan

Reputation: 1339

Testing of cdk eks KubernetesManifest in python

Score: 0

Views: 14

Answers: 0

Read More
Mike
Mike

Reputation: 60812

Why is Python's IsolatedAsyncioTestCase so slow?

Score: 2

Views: 77

Answers: 1

Read More
gmolau
gmolau

Reputation: 3005

Avoid type warnings when mocking objects in unit tests?

Score: 18

Views: 8818

Answers: 2

Read More
Frank
Frank

Reputation: 4417

How to patch a 3rd party lib in a unit test with FastAPI client

Score: 1

Views: 64

Answers: 1

Read More
RoyalSwish
RoyalSwish

Reputation: 1573

Python unittest - how to unit test function to open files of specific file pattern

Score: 0

Views: 35

Answers: 0

Read More
wawawa
wawawa

Reputation: 3355

assertEqual compare json objects raise error because of 'quote' in Python

Score: 1

Views: 2835

Answers: 2

Read More
ShamilS
ShamilS

Reputation: 1594

VSCode 1.39.x & Python 3.7.x: "ImportError: attempted relative import with no known parent package" - when started without debugging (CTRL+F5))

Score: 24

Views: 32308

Answers: 6

Read More
smark
smark

Reputation: 15

How to mock properly recv method in python and use settimeout

Score: 0

Views: 57

Answers: 1

Read More
fsdfsdfsdfsdfsdf
fsdfsdfsdfsdfsdf

Reputation: 63

How to unit test import error of a module that is actually available at testime?

Score: 1

Views: 52

Answers: 1

Read More
yeliabsalohcin
yeliabsalohcin

Reputation: 740

VSCode's testing framework breaks when referencing a file in a tertiary folder

Score: 0

Views: 30

Answers: 1

Read More
user1079785
user1079785

Reputation: 179

Is it possible to run 2 Python unitttests that have different patches in a single file?

Score: 0

Views: 62

Answers: 2

Read More
PreviousPage 2Next