def test_github_resolve_resolves_correctly(self):
        alice_on_github = github.GitHubAccount("1", {'login': '******'})
        alice_on_github.opt_in('alice')

        expected = 'alice'
        actual = github.resolve(u'alice')
        assert actual == expected
    def test_github_resolve_resolves_correctly(self):
        alice_on_github = github.GitHubAccount("1", {'login': '******'})
        alice_on_github.opt_in('alice')

        expected = 'alice'
        actual = github.resolve(u'alice')
        assert actual == expected, actual
    def test_github_resolve_resolves_correctly(self):
        alice = self.make_participant('alice')
        alice_on_github = Elsewhere(platform='github', user_id="1",
                                    user_info={'login': '******'})
        alice.accounts_elsewhere.append(alice_on_github)
        self.session.commit()

        expected = 'alice'
        actual = github.resolve(u'alice')
        assert actual == expected, actual
    def test_github_resolve_resolves_correctly(self):
        alice = self.make_participant('alice')
        alice_on_github = Elsewhere(platform='github',
                                    user_id="1",
                                    user_info={'login': '******'})
        alice.accounts_elsewhere.append(alice_on_github)
        self.session.commit()

        expected = 'alice'
        actual = github.resolve(u'alice')
        assert actual == expected, actual
Exemplo n.º 5
0
def test_github_resolve_resolves():
    with tip_graph(('alice', 'bob', 1)):
        expected = 'alice'
        actual = github.resolve(u'alice')
        assert actual == expected, actual