Completed
Push — develop ( 362316...d09326 )
by Wu
01:19
created

test_id_and_secret()   A

Complexity

Conditions 3

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 3
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
1
import os
2
3
from werobot.config import Config
4
from werobot.client import Client
5
6
basedir = os.path.dirname(os.path.abspath(__file__))
7
8
APP_ID = "123"
9
APP_SECRET = "321"
10
11
12
def test_id_and_secret():
13
    config = Config()
14
    config.from_pyfile(os.path.join(basedir, "test_client.py"))
15
    client = Client(config)
16
    assert client.appid == "123"
17
    assert client.appsecret == "321"
18