Skip to content
This repository was archived by the owner on Mar 14, 2023. It is now read-only.

Migrate rust-lang/rust to triagebot #431

Merged
merged 1 commit into from
Oct 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
153 changes: 0 additions & 153 deletions highfive/configs/rust-lang/rust.json

This file was deleted.

5 changes: 5 additions & 0 deletions highfive/tests/test_integration_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,16 @@ class TestNewComment(object):
def make_mocks(cls, patcherize):
cls.mocks = patcherize((
('ConfigParser', 'highfive.newpr.ConfigParser'),
('load_json_file', 'highfive.newpr.HighfiveHandler._load_json_file'),
))

config_mock = mock.Mock()
config_mock.get.side_effect = ('integration-user', 'integration-token')
cls.mocks['ConfigParser'].RawConfigParser.return_value = config_mock
cls.mocks['load_json_file'].side_effect = (
fakes.get_repo_configs()['individuals_no_dirs'],
fakes.get_global_configs()['base'],
)

def test_author_is_commenter(self):
payload = fakes.Payload.new_comment()
Expand Down