GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 73c5c0...bade8b )
by Drew J.
43s
created

TestBundlerFileCopy   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 21
rs 10
wmc 1
1
# -*- coding: utf-8 -*-
2
import unittest
3
4
from awslambdahelper.cli import LambdahelperBundler
5
from mock import patch, call, MagicMock, mock_open
6
7
8
class TestBundlerFileCopy(unittest.TestCase):
9
    @patch('shutil.copy')
10
    @patch('glob.glob')
11
    def test_filecopy(self, glob, shutil_copy):
12
        glob.return_value = ('one', 'two', 'three', 'four')
13
14
        cli_tool = LambdahelperBundler()
15
        cli_tool.target_directory = 'target'
16
        cli_tool.working_directory = 'working'
17
        cli_tool.requirements_path = 'reqs'
18
        cli_tool.copy_lambda_package_files()
19
20
        shutil_copy.assert_has_calls([
21
            call('one', 'working'),
22
            call('two', 'working'),
23
            call('three', 'working'),
24
            call('four', 'working'),
25
            call('reqs', 'working')
26
        ])
27
28
        self.assertEqual(shutil_copy.call_count, 5)
29