
DOAA: Pytest

Quiz
•
Computers
•
Professional Development
•
Hard

Aldrian Obaja Muis
Used 1+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
1 min • 1 pt
Which of the following files will be executed by pytest?
($DIR is your project directory where you run pytest)
$DIR/test_app.py
$DIR/tests/mytest.py
$DIR/app/my_test.py
$DIR/tests/conftest.py
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
In pytest, what's the term for a function that is called before each test?
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What would be the result of running this test?
test_dbl PASSED
test_cst PASSED
test_dbl ERROR
test_cst PASSED
test_dbl PASSED
test_cst ERROR
Nothing runs, pytest will throw error
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is NOT the purpose of parameterization in pytest?
To create multiple test cases with similar logic
To improve test readability
To run the same test with different input values
To call an external function
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which naming convention is typically used for pytest test files?
Starting with test or ending with _test
Ending with _test
Starting with test
There is no specific naming convention
Similar Resources on Wayground
10 questions
JCDSOL 012 - Fun Review Pt. 1

Quiz
•
Professional Development
10 questions
Quiz Post Test Rakor TI

Quiz
•
Professional Development
10 questions
"Byte-sized Brilliance: Unleash Your Tech IQ with this AI-some Q

Quiz
•
Professional Development
8 questions
02. Projects

Quiz
•
Professional Development
6 questions
Revisão Aula 4 - DPSI

Quiz
•
Professional Development
10 questions
DÖGM ''eSafety Label Webinarı''

Quiz
•
Professional Development
10 questions
Protocolo FTP

Quiz
•
Professional Development
10 questions
GSI DP-100 Day 1

Quiz
•
University - Professi...
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade