โ† All POC Flashcard Decks

POC Testing & Quality Assurance Flashcards

6 cards from real POC practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 6 POC Testing & Quality Assurance flashcards as text
  1. Which Python module provides built-in unit testing capabilities?

    Answer: unittest

    The `unittest` module is Python's built-in testing framework inspired by JUnit.

  2. What decorator is used in unittest to mark a test that should be skipped?

    Answer: @unittest.skip

    The `@unittest.skip` decorator marks a test to be skipped with an optional reason string.

  3. In pytest, what naming convention must test files follow to be automatically discovered?

    Answer: test_*.py or *_test.py

    Pytest discovers test files named `test_*.py` or `*_test.py` in the current directory tree by default.

  4. What method in unittest is used to verify that two values are equal?

    Answer: assertEqual()

    `assertEqual(a, b)` checks that `a` and `b` are equal and raises AssertionError if not.

  5. What is the purpose of `setUp()` in a unittest TestCase class?

    Answer: To run code before each test method

    `setUp()` is automatically called before each individual test method to prepare the test environment.

  6. What does TDD stand for in software development?

    Answer: Test-Driven Development

    TDD (Test-Driven Development) is a methodology where tests are written before the actual implementation code.