Εργαλεία Ανάπτυξης
******************

Τα modules που περιγράφονται σε αυτό το κεφάλαιο σας βοηθούν να
γράψετε λογισμικό. Για παράδειγμα, το module "pydoc" παίρνει ένα
module και δημιουργεί τεκμηρίωση βάσει του περιεχομένου του. Τα
modules "doctest" και "unittest" παρέχουν πλαίσια για τη συγγραφή
ελέγχων μονάδας που εκτελούν αυτόματα τον κώδικα και επαληθεύουν ότι
παράγεται το αναμενόμενο αποτέλεσμα.

Ο κατάλογος των modules που περιγράφονται σε αυτό το κεφάλαιο είναι:

* "typing" --- Support for type hints

  * Specification for the Python Type System

  * Type aliases

  * NewType

  * Annotating callable objects

  * Generics

  * Annotating tuples

  * The type of class objects

  * Annotating generators and coroutines

  * User-defined generic types

  * The "Any" type

  * Nominal vs structural subtyping

  * Module contents

    * Special typing primitives

      * Special types

      * Special forms

      * Building generic types and type aliases

      * Other special directives

    * Protocols

    * ABCs and Protocols for working with I/O

    * Functions and decorators

    * Introspection helpers

    * Constant

    * Deprecated aliases

      * Aliases to built-in types

      * Aliases to types in "collections"

      * Aliases to other concrete types

      * Aliases to container ABCs in "collections.abc"

      * Aliases to asynchronous ABCs in "collections.abc"

      * Aliases to other ABCs in "collections.abc"

      * Aliases to "contextlib" ABCs

  * Deprecation Timeline of Major Features

* "pydoc" --- Documentation generator and online help system

* Python Development Mode

  * Effects of the Python Development Mode

  * ResourceWarning Example

  * Bad file descriptor error example

* "doctest" --- Test interactive Python examples

  * Simple Usage: Checking Examples in Docstrings

  * Simple Usage: Checking Examples in a Text File

  * Command-line Usage

  * How It Works

    * Which Docstrings Are Examined?

    * How are Docstring Examples Recognized?

    * What's the Execution Context?

    * What About Exceptions?

    * Option Flags

    * Directives

    * Warnings

  * Basic API

  * Unittest API

  * Advanced API

    * DocTest Objects

    * Example Objects

    * DocTestFinder objects

    * DocTestParser objects

    * TestResults objects

    * DocTestRunner objects

    * OutputChecker objects

  * Debugging

  * Soapbox

* "unittest" --- Unit testing framework

  * Basic example

  * Command-Line Interface

    * Command-line options

  * Test Discovery

  * Organizing test code

  * Re-using old test code

  * Skipping tests and expected failures

  * Distinguishing test iterations using subtests

  * Classes and functions

    * Test cases

    * Grouping tests

    * Loading and running tests

      * load_tests Protocol

  * Class and Module Fixtures

    * setUpClass and tearDownClass

    * setUpModule and tearDownModule

  * Signal Handling

* "unittest.mock" --- mock object library

  * Quick Guide

  * The Mock Class

    * Calling

    * Deleting Attributes

    * Mock names and the name attribute

    * Attaching Mocks as Attributes

  * The patchers

    * patch

    * patch.object

    * patch.dict

    * patch.multiple

    * patch methods: start and stop

    * patch builtins

    * TEST_PREFIX

    * Nesting Patch Decorators

    * Where to patch

    * Patching Descriptors and Proxy Objects

  * MagicMock and magic method support

    * Mocking Magic Methods

    * Magic Mock

  * Helpers

    * sentinel

    * DEFAULT

    * call

    * create_autospec

    * ANY

    * FILTER_DIR

    * mock_open

    * Autospeccing

    * Sealing mocks

  * Order of precedence of "side_effect", "return_value" and *wraps*

* "unittest.mock" --- ξεκινώντας

  * Χρήση της Προσομοίωσης (Mock)

    * Προσομοίωση Μεθόδων με Επιδιόρθωση (Patching)

    * Προσομοίωση για Κλήσεις Μεθόδων σε ένα Αντικείμενο

    * Προσομοίωση Κλάσεων

    * Ονομασία των προσομοιώσεών σας

    * Παρακολούθηση όλων των Κλήσεων

    * Ορισμός Τιμών Επιστροφής και Χαρακτηριστικών

    * Πρόκληση εξαιρέσεων με προσομοιώσεις

    * Συναρτήσεις παρενέργειας και iterables

    * Προσομοίωση ασύγχρονων επαναληπτών

    * Προσομοίωση ασύγχρονου διαχειριστή περιεχομένου

    * Δημιουργία Προσομοίωσης από ένα Υφιστάμενο Αντικείμενο

    * Χρήση του side_effect για επιστροφή περιεχομένου ανά αρχείο

  * Διακοσμητές Επιδιόρθωσης (Patch Decorators)

  * Περαιτέρω Παραδείγματα

    * Προσομοίωση αλυσιδωτών κλήσεων

    * Μερική προσομοίωση

    * Προσομοίωση μιας Μεθόδου Γεννήτριας

    * Εφαρμογή της ίδιας επιδιόρθωσης σε κάθε μέθοδο δοκιμής

    * Προσομοίωση Μη Δεσμευμένων Μεθόδων

    * Έλεγχος πολλαπλών κλήσεων με προσομοίωση

    * Αντιμετώπιση μεταβλητών ορισμάτων

    * Εμφωλευμένες Επιδιορθώσεις

    * Προσομοίωση ενός λεξικού με το MagicMock

    * Υποκλάσεις Mock και τα χαρακτηριστικά τους

    * Προσομοίωση εισαγωγών με το patch.dict

    * Παρακολούθηση της σειράς κλήσεων και λιγότερο λεκτικές δηλώσεις
      κλήσεων

    * Πιο σύνθετη αντιστοίχιση ορισμάτων

* "test" --- Regression tests package for Python

  * Writing Unit Tests for the "test" package

  * Running tests using the command-line interface

* "test.support" --- Utilities for the Python test suite

* "test.support.socket_helper" --- Utilities for socket tests

* "test.support.script_helper" --- Utilities for the Python execution
  tests

* "test.support.bytecode_helper" --- Support tools for testing correct
  bytecode generation

* "test.support.threading_helper" --- Utilities for threading tests

* "test.support.os_helper" --- Utilities for os tests

* "test.support.import_helper" --- Utilities for import tests

* "test.support.warnings_helper" --- Utilities for warnings tests
