Znalostná bázaCentrum skúšok
SKSlovenčina
Vybrať jazyk13

CKTIS / Python

Znalostná báza — Python

Syntax, operátory a pojmy programovania. Nájdi vysvetlenie, prezri si príklad a pokračuj v učení.

Počet hesiel: 583

Python

typing.ParamSpec

Zachytí zoznam parametrov, aby dekorátor zachoval pozičné a pomenované pravidlá pre kontrolór.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

typing.Protocol

Opisuje štrukturálne rozhranie pre statickú kontrolu.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

typing.Required

Označuje povinný kľúč TypedDict aj pri total=False.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

typing.runtime_checkable

Umožňuje isinstance overiť prítomnosť členov protokolu bez kontroly typov a signatúr.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

typing.Self

Označuje typ príjemcu a zachová podtriedu v statickom výsledku zdedenej metódy.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

typing.Tuple — typové anotácie pre n-tice

typing.Tuple opisuje typy prvkov n-tice. Od Pythonu 3.9 ide o zastaraný alias; v novom kóde použite tuple[...].

Základná · Python 3.14; repository image, production runtime not attested
Python

typing.TypeAlias

Označí priradenie pre kontrolór ako alias typu.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

typing.TypedDict

Opisuje schému slovníka so známymi reťazcovými kľúčmi a vlastným typom hodnoty pre každé pole.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

typing.TypeGuard

Označuje logický predikát, ktorého úspech staticky zúži typ prvého pozičného argumentu aj pri invariantných zoznamoch.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

typing.TypeVar

Spája typ parametra a výsledku premennou odvodenou kontrolórom.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

typing.Union

Označuje hodnoty aspoň jedného členského typu.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

unittest.defaultTestLoader — zdieľaný zavádzač testov

unittest.defaultTestLoader je hotová inštancia TestLoader, ktorá vytvára testovacie súpravy bez toho, aby ste museli vytvárať samostatný zavádzač.

Základná · Python 3.14; repository image, production runtime not attested
Python

unittest.expectedFailure

Dekorátor označuje očakávané zlyhanie testovacej metódy.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

unittest.main

unittest.main načíta testy zo zvoleného modulu a odovzdá ich spúšťaču.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

unittest.skip

skip prijíma dôvod vynechania testovacej metódy alebo celej triedy.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

unittest.skipIf

skipIf označí test na vynechanie, ak je podmienka pri použití dekorátora pravdivá.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

unittest.TestCase

Inštancia TestCase spúšťa jednu metódu určenú menom.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

unittest.TestLoader

TestLoader vyberá testovacie metódy a vytvára z nich sadu na neskoršie spustenie.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

unittest.TestResult.errors — zaznamenané chyby testov

`unittest.TestResult.errors` ukladá dvojice tvorené objektom súvisiacim s chybou a formátovaným reťazcom tracebacku. Pri predvolenej hodnote `failureException` (`AssertionError`) sa neúspešné tvrdenia v testovacích metódach bez označenia `expectedFailure` zaznamenávajú osobitne do `failures`.

Základná · Python 3.14; repository image, production runtime not attested
Python

unittest.TestResult.failures — zoznam chýb asercií

unittest.TestResult.failures ukladá chyby asercií ako dvojice obsahujúce testovací objekt a formátovaný text trasovania zásobníka.

Základná · Python 3.14; repository image, production runtime not attested
Python

unittest.TestSuite

TestSuite združuje testovacie prípady a vnorené sady na spoločné spustenie.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

unittest.TextTestRunner

TextTestRunner spúšťa prípad alebo sadu a vypisuje prehľad do stream, štandardne stderr.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested