示例#1
0
 def test_runWithoutProjectInterface(self):
     print("\nSampleProject::test_runWithoutProjectInterface:")
     TestSampleProject.serversForTests.stopServers()
     time.sleep(0.1)
     argv = ['-y']
     ret = sample.main(argv)
     assert ret == 0
示例#2
0
 def test_runWithInitWatch(self):
     print("\nSampleProject::test_runWithDataRemote")
     TestSampleProject.serversForTests.stopServers()
     TestSampleProject.serversForTests.startServers(
         allowedDirs=allowedDirs,
         allowedFileTypes=allowedFileTypes,
         dataRemote=True)
     client = ClientInterface()
     assert client.isDataRemote() == True
     argv = ['--useInitWatch', '--noVerbose']
     ret = sample.main(argv)
     assert ret == 0
示例#3
0
 def test_runFromCommandLine(self):
     argv = ['--filesremote']
     ret = sample.main(argv)
     assert ret == 0