Esempio n. 1
0
 def test_implied_remote_terminal_session(self):
     config = py.test.config._reparse([self.tmpdir, '--looponfailing'])
     assert config._getsessionname() == 'RemoteTerminalSession'
     config = py.test.config._reparse([self.tmpdir, '--exec=x'])
     assert config._getsessionname() == 'RemoteTerminalSession'
     config = py.test.config._reparse([self.tmpdir, '--dist', '--exec=x'])
     assert config._getsessionname() == 'RSession'
Esempio n. 2
0
    def test_implied_lsession(self):
        optnames = 'startserver runbrowser apigen=x rest boxed'.split()
        for x in optnames:
            config = py.test.config._reparse([self.tmpdir, '--%s' % x])
            assert config._getsessionname() == 'LSession'

        for x in 'startserver runbrowser rest'.split():
            config = py.test.config._reparse([self.tmpdir, '--dist', '--%s' % x])
            assert config._getsessionname() == 'RSession'
Esempio n. 3
0
 def test_sessionname_dist(self):
     config = py.test.config._reparse([self.tmpdir, '--dist'])
     assert config._getsessionname() == 'RSession'
Esempio n. 4
0
 def test_sessionname_default(self):
     config = py.test.config._reparse([self.tmpdir])
     assert config._getsessionname() == 'TerminalSession'