python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
How to patch a class in the right place
I am having trouble to patch a class that is imported and set in a dictionary.
Given these files:
lib/
foo/
conf.py
foo.py
# conf.py
from .foo import Foo
CONF = {"class": Foo}
#...

Mike
Votes: 0
Answers: 1
Python Unit test works With/without using side_effect
I need to test a python script script1.py in which it imports my another class
from lib.utils.ClassA import ClassA
lib = ClassA(xxxxxx)
lib.main()
Inside ClassA (ClassA.py) it imports python packag...
Winston Fan
Votes: 0
Answers: 0
How to test exception part in unnitest python
I want to test the exception part of my code.
def main():
try:
logger.info("Ejecución planificada proceso Mae_CIL")
a = ObjectA()
a.method()
logger.info(&...
JDK
Votes: 0
Answers: 1
mock pty / termios on windows tests
I am developing an application that it's meant to be run on linux, and relies on pty and termios modules (I don't think it's important, but I'm writing some DAGs on Airflow).
I use a windows workstati...
Vito De Tullio
Votes: 0
Answers: 2