1111 CliTestCase ,
1212 skip_if_environ ,
1313 TEST_REPOS_DIR ,
14+ PROJECT_TEMPLATES_DIR ,
1415)
1516
1617TEST_HISTORY_NAME = "Cool History 42"
@@ -37,6 +38,21 @@ def test_serve_daemon(self):
3738 assert len (user_gi .histories .get_histories (name = TEST_HISTORY_NAME )) == 0
3839 user_gi .histories .create_history (TEST_HISTORY_NAME )
3940
41+ @skip_if_environ ("PLANEMO_SKIP_GALAXY_TESTS" )
42+ def test_serve_extra_tools (self ):
43+ port = network_util .get_free_port ()
44+ pid_file = os .path .join (self ._home , "test.pid" )
45+ random_lines = os .path .join (PROJECT_TEMPLATES_DIR , "demo" , "randomlines.xml" )
46+ extra_args = ["--daemon" , "--pid_file" , pid_file , "--extra_tools" , random_lines ]
47+ serve = functools .partial (self ._run , port , extra_args )
48+ self ._launch_thread_and_wait (serve , port )
49+ admin_gi = api .gi (port )
50+ user_api_key = api .user_api_key (admin_gi )
51+ user_gi = api .gi (port , user_api_key )
52+ assert len (user_gi .histories .get_histories (name = TEST_HISTORY_NAME )) == 0
53+ user_gi .histories .create_history (TEST_HISTORY_NAME )
54+ assert user_gi .tools .get_tools (tool_id = "random_lines1" )
55+
4056 @skip_if_environ ("PLANEMO_SKIP_GALAXY_TESTS" )
4157 def test_serve_profile (self ):
4258 port = network_util .get_free_port ()
0 commit comments