コード例 #1
0
ファイル: test_base.py プロジェクト: BrnoPCmaniak/pulp
    def test_initialized(self, initialize, _load_test_config):
        """
        Assert that the function is a noop when the connection is already initialized.
        """
        base.start_database_connection()

        self.assertEqual(_load_test_config.call_count, 0)
        self.assertEqual(initialize.call_count, 0)
コード例 #2
0
ファイル: test_base.py プロジェクト: shubham90/pulp
    def test_initialized(self, initialize, _load_test_config):
        """
        Assert that the function is a noop when the connection is already initialized.
        """
        base.start_database_connection()

        self.assertEqual(_load_test_config.call_count, 0)
        self.assertEqual(initialize.call_count, 0)
コード例 #3
0
ファイル: test_base.py プロジェクト: BrnoPCmaniak/pulp
    def test_not_initialized(self, initialize, _load_test_config):
        """
        Assert that the function starts the connection when the connection is not already
        initialized.
        """
        base.start_database_connection()

        _load_test_config.assert_called_once_with()
        initialize.assert_called_once_with()
コード例 #4
0
ファイル: test_base.py プロジェクト: shubham90/pulp
    def test_not_initialized(self, initialize, _load_test_config):
        """
        Assert that the function starts the connection when the connection is not already
        initialized.
        """
        base.start_database_connection()

        _load_test_config.assert_called_once_with()
        initialize.assert_called_once_with()
コード例 #5
0
ファイル: __init__.py プロジェクト: FlorianHeigl/pulp_rpm
def setup():
    """
    Set up the database connection for the tests to use.
    """
    devel_base.start_database_connection()
コード例 #6
0
ファイル: __init__.py プロジェクト: alanoe/pulp
def setup():
    """
    Set up the database connection for the tests to use.
    """
    devel_base.start_database_connection()