Exemple #1
0
    def test_has_true(self):
        # given
        mock_content = {'name': 'Dockerfile'}

        dependabot_repo = Dependabot(ANY, Mock())

        # when then
        assert dependabot_repo.has('Dockerfile', [mock_content])
Exemple #2
0
    def test_has_true_string(self):
        # given
        mock_content = 'Dockerfile'

        dependabot_repo = Dependabot(ANY, Mock())

        # when then
        assert dependabot_repo.has('Dockerfile', [mock_content])
Exemple #3
0
    def test_has_false(self):
        # given
        dependabot_repo = Dependabot(ANY, Mock())

        # when then
        self.assertFalse(dependabot_repo.has(None, []))