File tree Expand file tree Collapse file tree 7 files changed +6
-7
lines changed Expand file tree Collapse file tree 7 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 23
23
- name : Install dependencies
24
24
run : |
25
25
python -m pip install --upgrade pip
26
- pip install mock
27
26
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
28
27
- name : Configure git
29
28
run : |
Original file line number Diff line number Diff line change 2
2
3
3
Jens is shipped with a bunch of functional tests which live in
4
4
` jens/test ` . Make sure that all the run-time dependencies declared in
5
- ` requirements.txt ` and ` mock ` are installed before running them. The
5
+ ` requirements.txt ` are installed before running them. The
6
6
tests can also be run using ` pytest ` .
7
7
8
8
## Running the tests with a human-readable output
Original file line number Diff line number Diff line change 8
8
from __future__ import absolute_import
9
9
import os
10
10
import jens .git_wrapper as git_wrapper
11
- from mock import patch
11
+ from unittest . mock import patch
12
12
from jens .test .testcases import JensTestCase
13
13
from jens .errors import JensGitError
14
14
from jens .test .tools import *
Original file line number Diff line number Diff line change 25
25
26
26
from jens .test .testcases import JensTestCase
27
27
28
- from mock import Mock , patch
28
+ from unittest . mock import Mock , patch
29
29
30
30
class MessagingTest (JensTestCase ):
31
31
def setUp (self ):
Original file line number Diff line number Diff line change 10
10
import fcntl
11
11
import os
12
12
13
- from mock import Mock , patch
13
+ from unittest . mock import Mock , patch
14
14
15
15
from jens .maintenance import refresh_metadata
16
16
from jens .git_wrapper import clone
Original file line number Diff line number Diff line change 9
9
import os
10
10
import yaml
11
11
import shutil
12
- import mock
12
+ from unittest import mock
13
13
14
14
from jens .messaging import count_pending_hints
15
15
from jens .repos import refresh_repositories
Original file line number Diff line number Diff line change 1
1
from __future__ import absolute_import
2
2
import json
3
- from mock import patch
3
+ from unittest . mock import patch
4
4
5
5
from jens .errors import JensMessagingError
6
6
from jens .test .tools import init_repositories
You can’t perform that action at this time.
0 commit comments