DOAA: Pytest

DOAA: Pytest

Professional Development

5 Qs

quiz-placeholder

Similar activities

Cyber Security Everything We Need To Know Quiz

Cyber Security Everything We Need To Know Quiz

Professional Development

10 Qs

Revisão Aula 4 - DPSI

Revisão Aula 4 - DPSI

Professional Development

6 Qs

DÖGM ''eSafety Label Webinarı''

DÖGM ''eSafety Label Webinarı''

Professional Development

10 Qs

Protocolo FTP

Protocolo FTP

Professional Development

10 Qs

GSI DP-100 Day 1

GSI DP-100 Day 1

University - Professional Development

10 Qs

Comandos consola Ubuntu

Comandos consola Ubuntu

Professional Development

5 Qs

Linux-1

Linux-1

Professional Development

5 Qs

JCDSOL 012 - Fun Review Pt. 1

JCDSOL 012 - Fun Review Pt. 1

Professional Development

10 Qs

DOAA: Pytest

DOAA: Pytest

Assessment

Quiz

Computers

Professional Development

Hard

Created by

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

Media Image

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