How to use the testinfra.fixtures.UserFixture function in testinfra

To help you get started, we’ve selected a few testinfra examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github scottrice / Ice / tests / steam_grid_updater_tests.py View on Github external
def setUp(self):
    self.steam_fixture = fixtures.SteamFixture()
    self.user_fixture = fixtures.UserFixture(self.steam_fixture)

    self.mock_logger = mock()
    self.mock_provider = mock()
    self.updater = steam_grid_updater.SteamGridUpdater(
        self.mock_provider,
        self.mock_logger,
    )
github scottrice / Ice / tests / backups_tests.py View on Github external
def setUp(self):
    self.steam_fixture = fixtures.SteamFixture()
    self.user_fixture = fixtures.UserFixture(self.steam_fixture)
github scottrice / Ice / tests / steam_shortcut_synchronizer_tests.py View on Github external
def setUp(self):
    self.steam_fixture = fixtures.SteamFixture()
    self.user_fixture = fixtures.UserFixture(self.steam_fixture)

    self.mock_config  = mock()
    self.mock_archive = mock()
    self.synchronizer = steam_shortcut_synchronizer.SteamShortcutSynchronizer(self.mock_config, self.mock_archive)

    self.mock_logger = mock()
    steam_shortcut_synchronizer.logger = self.mock_logger