forked from hoveeman/music-cards
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcards_cmd_executor.py
56 lines (41 loc) · 1.13 KB
/
cards_cmd_executor.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
"""
BIPBIPZIZIK
Fake Unit test for card command execution
It run some known cards directly as unit test to test in on any computers.
"""
import unittest
from card_launcher import CardLauncher
class CardsWrite(unittest.TestCase):
"""
Set of unit test of firebase cards database
"""
@classmethod
def setUpClass(cls):
"""
Setup for all unit test
@return: None
"""
cls.launcher = CardLauncher('https://bipbipzizik.firebaseio.com/', 'prod')
cls.launcher.config_update('000000008e3c2b91')
# def setUp(self):
# nothing yet
def test_playpause(self):
"""
Test card read on production database
@return
"""
self.launcher.execute_card('0013397903')
def test_mathieu_shedid(self):
"""
Test card read on production database
@return
"""
self.launcher.execute_card('0013365376')
def test_gorillaz(self):
"""
Test card read on production database
@return
"""
self.launcher.execute_card('0005585628')
if __name__ == '__main__':
unittest.main()