Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

# -*- coding: utf-8 -*- 

from hipnotify import Room 

 

 

def test_debug_room_notification(mock_hipchat): 

    """Test for debug mode""" 

    hip = Room('test_token', '1234', debug=True) 

    res = hip.notify('test') 

    assert res == [] 

 

 

def test_room_notification(mock_hipchat): 

    """Test with HipChat API mock""" 

    hip = Room('test_token', '1234') 

    res = hip.notify('test') 

    assert res.status_code == 200