Python Quiz Testing

Python Quiz Testing

Professional Development

20 Qs

quiz-placeholder

Similar activities

Quizizz L6 CĐ UD tin học

Quizizz L6 CĐ UD tin học

Professional Development

17 Qs

MS-900 Cloud Concepts 1

MS-900 Cloud Concepts 1

Professional Development

20 Qs

Mobile and Operating Systems

Mobile and Operating Systems

Professional Development

20 Qs

Microsoft Server Admin 98-365 Part 6

Microsoft Server Admin 98-365 Part 6

KG - Professional Development

20 Qs

Microsoft Office Advandces 2016

Microsoft Office Advandces 2016

9th Grade - Professional Development

20 Qs

Excel Functions

Excel Functions

Professional Development

15 Qs

TIỆN CNC 1.1

TIỆN CNC 1.1

Professional Development

20 Qs

SE Practice Quiz

SE Practice Quiz

University - Professional Development

18 Qs

Python Quiz Testing

Python Quiz Testing

Assessment

Quiz

Computers

Professional Development

Practice Problem

Hard

Created by

Comic Creator

Used 9+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

20 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

pytest tự động chạy những những hàm nào sau đây trong thư mục hiện hành?

def test_sqrt():

def testsquare():

def tesequality():

def equality_test():

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Từ quan điểm của người viết test, câu lệnh nào sau đây cho kết quả độ bao phủ của các testcase chính xác nhất?

coverage run test_main.py

pytest -v --cov=test_main

coverage report -m test_main.py

pytest

3.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Câu lệnh sau chạy những test nào?

pytest -k great -v

test_greater()

greater()

test_greater_equal()

lessthan_test()

4.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Pytest có những ưu điểm nào sau đây so với unittest?

Pytest có thể chạy nhiều test song song, giúp giảm thời gian thực thi của bộ test.

Pytest cho phép bỏ qua một tập hợp con các test trong quá trình thực thi.

Pytest là mã nguồn mở và miễn phí.

Pytest có cách riêng để phát hiện test file và function, kể cả nếu không được nêu ra cụ thể.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Đối số -v trong câu lệnh dưới đây giúp

pytest -v

Hiển thị version của pytest

Hiển thị nhiều thông tin chi tiết hơn khi thực thi

Hiển thị nội dung hướng dẫn sử dụng pytest

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Điều nào dưới đây đúng liên quan đến fixtures?

Fixture được chạy trước mỗi test mà nó được sử dụng

Fixture là các file

Fixture được dùng để lấy dữ liệu cho các test

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Bạn có thể làm gì với Fixture

Đặt fixture ở một file riêng để cho phép nhiều file test tái sử dụng được

Kết hợp với việc tham số hóa các test để viết code ngắn hơn

Thực thi code fixture như một hàm test bình thường

Giúp chuẩn bị khi có nhiều khác biệt nhỏ trong dữ liệu

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?