Show More
@@ -4,8 +4,6 | |||||
4 | import os |
|
4 | import os | |
5 | import tempfile |
|
5 | import tempfile | |
6 |
|
6 | |||
7 | import nose.tools as nt |
|
|||
8 |
|
||||
9 | from traitlets import Unicode |
|
7 | from traitlets import Unicode | |
10 |
|
8 | |||
11 | from IPython.core.application import BaseIPythonApplication |
|
9 | from IPython.core.application import BaseIPythonApplication | |
@@ -65,9 +63,8 def test_cli_priority(): | |||||
65 | f.write("c.TestApp.test = 'config file'") |
|
63 | f.write("c.TestApp.test = 'config file'") | |
66 |
|
64 | |||
67 | app = TestApp() |
|
65 | app = TestApp() | |
68 |
app.initialize([ |
|
66 | app.initialize(["--profile-dir", td]) | |
69 |
|
|
67 | assert app.test == "config file" | |
70 | app = TestApp() |
|
68 | app = TestApp() | |
71 |
app.initialize([ |
|
69 | app.initialize(["--profile-dir", td, "--TestApp.test=cli"]) | |
72 |
|
|
70 | assert app.test == "cli" | |
73 |
|
General Comments 0
You need to be logged in to leave comments.
Login now