'''Test cases for p4cli.py $Id: //guest/lester_cheung/p4util/p4util/test_p4cli.py#1 $ $DateTime: 2014/04/01 19:11:15 $ $Author: lester_cheung $ ''' import unittest import logging as log DEBUGLVL = log.DEBUG log.basicConfig( level=DEBUGLVL, format='%(asctime)s %(levelname)-8s %(message)s', datefmt='%Y-%m-%d %H:%M', ) from pprint import pprint, pformat class NoEnoughTestExtendMe(unittest.TestCase): def setUp(self): from p4cli import P4 p4 = P4() p4.user = 'someuser' p4.port = '1666' p4.client = 'noclient' p4.connect() self.p4 = p4 def test_changes_m1(self): self.p4.run_changes('-m1') if __name__ == '__main__': unittest.main()
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 8773 | Lester Cheung | "p4util" as an importable Python package. | ||
//guest/lester_cheung/p4util/test_p4cli.py | |||||
#1 | 8534 | Lester Cheung |
Great artists steal - so I'm stealing Sven's Python library to make it better! |
||
//guest/lester_cheung/scripts/test_p4cli.py | |||||
#1 | 8507 | Lester Cheung |
P4CLI - a wrapper class for P4, the command line client with the same API as P4Python's P4 class. Note: * This is a work in progress - this revision only works for Python 2.6+ (tested with 2.7 & 3.3). * Need a lot of test cases - help please. :) * The mapping API (P4.Map in P4Python) is not supported by the command line client and thus will never be supported. |