meta_package_manager.tests package

Submodules

meta_package_manager.tests.case module

class meta_package_manager.tests.case.CLITestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

Utilities and helpers to easely write unit-tests.

invoke(*args)[source]

Executes Click’s CLI, print output and return results.

print_cli_output(cmd, output)[source]

Simulate CLI output.

Used to print debug traces in test suites.

run_cmd(*args)[source]

Run a system command, print output and return results.

setUp()[source]
meta_package_manager.tests.case.skip_destructive()[source]

Decorator to skip a test unless destructive mode is allowed.

Destructive mode is activated by the presence of a DESTRUCTIVE_TESTS environment variable set to True.

meta_package_manager.tests.case.unless_linux()[source]

Decorator to skip a test unless it is run on a Linux system.

meta_package_manager.tests.case.unless_macos()[source]

Decorator to skip a test unless it is run on a macOS system.

meta_package_manager.tests.case.unless_windows()[source]

Decorator to skip a test unless it is run on a Windows system.

meta_package_manager.tests.test_bitbar_plugin module

class meta_package_manager.tests.test_bitbar_plugin.TestBitBarPlugin(methodName='runTest')[source]

Bases: meta_package_manager.tests.case.CLITestCase

test_simple_call()[source]

meta_package_manager.tests.test_cli module

class meta_package_manager.tests.test_cli.TestCLI(methodName='runTest')[source]

Bases: meta_package_manager.tests.case.CLITestCase

test_bare_call()[source]
test_main_help()[source]
test_verbosity()[source]
test_version()[source]
class meta_package_manager.tests.test_cli.TestCLIManagers(methodName='runTest')[source]

Bases: meta_package_manager.tests.case.CLITestCase

test_json_debug_output()[source]
test_json_output()[source]
test_main_help()[source]
test_plain_table_rendering()[source]
test_simple_call()[source]
test_simple_table_rendering()[source]
test_sub_manager_scope()[source]
test_verbosity()[source]
class meta_package_manager.tests.test_cli.TestCLIOutdated(methodName='runTest')[source]

Bases: meta_package_manager.tests.case.CLITestCase

test_cli_format_bitbar()[source]
test_cli_format_fragments()[source]
test_cli_format_plain()[source]
test_json_debug_output()[source]
test_json_output()[source]
test_main_help()[source]
test_plain_table_rendering()[source]
test_simple_call()[source]
test_simple_table_rendering()[source]
test_sub_manager_scope()[source]
test_verbosity()[source]
class meta_package_manager.tests.test_cli.TestCLISync(methodName='runTest')[source]

Bases: meta_package_manager.tests.case.CLITestCase

test_main_help()[source]
test_simple_call()[source]
test_sub_manager_scope()[source]
test_verbosity()[source]
class meta_package_manager.tests.test_cli.TestCLIUpgrade(methodName='runTest')[source]

Bases: meta_package_manager.tests.case.CLITestCase

test_full_upgrade(*args, **kwargs)[source]
test_main_help()[source]
test_simple_call()[source]
test_sub_manager_scope()[source]
test_verbosity()[source]

meta_package_manager.tests.test_managers module

class meta_package_manager.tests.test_managers.TestManagerDefinitions(methodName='runTest')[source]

Bases: unittest.case.TestCase

Test the definition of all package managers.

test_ascii_id()[source]

All package manager IDs should be short ASCII strings.

test_cli_args_type()[source]

Check that definitions returns CLI args as a list.

test_cli_path_type()[source]

Check that definitions returns the CLI path as a string.

test_cli_type()[source]

Check that all methods returning a CLI is a list.

test_number()[source]

Check all implemented package managers are accounted for.

test_platforms_type()[source]

Check that definitions returns supported platforms as a frozenset.

test_platforms_values()[source]

Check that definitions returns platforms with a registered label.

class meta_package_manager.tests.test_managers.TestManagerPlatform(methodName='runTest')[source]

Bases: unittest.case.TestCase

test_linux(*args, **kwargs)[source]
test_macos()[source]
test_windows(*args, **kwargs)[source]

Module contents