We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb9323a commit e51fe1dCopy full SHA for e51fe1d
tests/unit/test_contributors_module.py
@@ -0,0 +1,16 @@
1
+from pyosmeta.contributors import ProcessContributors
2
+from pyosmeta.github_api import GitHubAPI
3
+
4
5
+def test_init(mocker):
6
+ """Test that the ProcessContributors object instantiates as
7
+ expected"""
8
9
+ # Create a mock GitHubAPI object
10
+ github_api_mock = mocker.MagicMock(spec=GitHubAPI)
11
+ json_files = ["file1.json", "file2.json"]
12
13
+ process_contributors = ProcessContributors(github_api_mock, json_files)
14
15
+ assert process_contributors.github_api == github_api_mock
16
+ assert process_contributors.json_files == json_files
0 commit comments