@@ 105-119 (lines=15) @@ | ||
102 | driver.GraphSONMessageSerializer |
|
103 | ||
104 | ||
105 | @pytest.mark.asyncio |
|
106 | async def test_app_config_from_json(app): |
|
107 | app.config_from_file(dirname + '/tests/config/config.json') |
|
108 | assert app.config['scheme'] == 'wss' |
|
109 | assert app.config['hosts'] == ['localhost'] |
|
110 | assert app.config['port'] == 8182 |
|
111 | assert app.config['ssl_certfile'] == '' |
|
112 | assert app.config['ssl_keyfile'] == '' |
|
113 | assert app.config['ssl_password'] == '' |
|
114 | assert app.config['username'] == 'dave' |
|
115 | assert app.config['password'] == 'mypass' |
|
116 | ||
117 | assert issubclass(app.config['message_serializer'], |
|
118 | driver.GraphSONMessageSerializer) |
|
119 | await app.close() |
|
120 | ||
121 | ||
122 | @pytest.mark.asyncio |
|
@@ 122-135 (lines=14) @@ | ||
119 | await app.close() |
|
120 | ||
121 | ||
122 | @pytest.mark.asyncio |
|
123 | async def test_app_config_from_yaml(app): |
|
124 | app.config_from_file(dirname + '/tests/config/config.yml') |
|
125 | assert app.config['scheme'] == 'wss' |
|
126 | assert app.config['hosts'] == ['localhost'] |
|
127 | assert app.config['port'] == 8183 |
|
128 | assert app.config['ssl_certfile'] == '' |
|
129 | assert app.config['ssl_keyfile'] == '' |
|
130 | assert app.config['ssl_password'] == '' |
|
131 | assert app.config['username'] == '' |
|
132 | assert app.config['password'] == '' |
|
133 | assert issubclass(app.config['message_serializer'], |
|
134 | driver.GraphSONMessageSerializer) |
|
135 | await app.close() |
|
136 | ||
137 | ||
138 | @pytest.mark.asyncio |