Commit Graph

191 Commits

Author SHA1 Message Date
Jason Gerard DeRose
d76202fea3 API.env is now an Env instance rather than an Environment instance 2008-10-27 01:35:40 -06:00
Jason Gerard DeRose
25a7df9615 Env._finalize_core() now also loads config from Env.conf_default 2008-10-27 01:09:53 -06:00
Jason Gerard DeRose
28dd8e74bd Env._bootstrap() now also sets Env.conf_default 2008-10-27 00:58:25 -06:00
Jason Gerard DeRose
4fe03f5e17 Added API.load_plugins() place-holder, which cascades call to API.bootstrap() 2008-10-26 23:53:44 -06:00
Jason Gerard DeRose
6b8abb0d78 Implemented placeholder API.bootstrap() method; added API __doing(), __do_if_not_done(), isdone() methods borrowed from Env; API.finalize() now cascades call to API.bootstrap() 2008-10-26 23:28:06 -06:00
Jason Gerard DeRose
759734864e Finished Env._finalize() and corresponding unit tests 2008-10-24 20:21:27 -06:00
Jason Gerard DeRose
ac4efac394 Finished Env._finalize_core() and corresponding unit tests 2008-10-24 20:02:14 -06:00
Jason Gerard DeRose
8ca44bcbfa Added tests.util.TempHome class for created a tempdir and setting os.environ['HOME'] to it; updated various unit tests for Env so they are run using a tempdir for home 2008-10-24 16:02:26 -06:00
Jason Gerard DeRose
2a41db33c6 Env._bootstrap() now raises StandardError if called more than once 2008-10-24 15:35:58 -06:00
Jason Gerard DeRose
f80beb948b Added ipalib/constants.py; added Env._load_config() method along with comprehensive unit tests for same 2008-10-24 15:07:07 -06:00
Jason Gerard DeRose
2ec0312eb6 Finished doodle with stricter version of Environment 2008-10-24 01:51:36 -06:00
Jason Gerard DeRose
59a2cffff4 IPAError now more appropriately subclasses from StandardError instead of Exception 2008-10-23 21:21:51 -06:00
Jason Gerard DeRose
bb978e591b Fixed bug in DefaultFrom where impleied keys were using entire func_code.co_varnames instead of an approprate slice 2008-10-20 16:45:32 -06:00
Martin Nagy
18e74643a6 Add comments in config.py and fix Environment.get() 2008-10-20 19:54:30 +02:00
Jason Gerard DeRose
8322138f38 Added new Param.flags attribute (set with flags=foo kwarg) 2008-10-17 19:34:26 -06:00
Jason Gerard DeRose
1be301821e Fixed unit test for CrudBacked.retrieve() 2008-10-17 16:47:09 -06:00
Martin Nagy
3a80297b04 Reworking Environment, moved it to config.py 2008-10-17 23:11:51 +02:00
Martin Nagy
ff88652a40 Convert string values to boolean when generating environment 2008-10-14 21:22:44 +02:00
Jason Gerard DeRose
446037fd60 Added Object.get_dn() method; added corresponding unit tests 2008-10-13 23:26:24 -06:00
Jason Gerard DeRose
8674086b85 Param now takes cli_name kwarg that sets Param.cli_name attribute 2008-10-13 17:24:23 -06:00
Jason Gerard DeRose
225e2b0c93 Added CrudBackend abstract class defining generic CRUD API 2008-10-13 09:50:29 -06:00
Jason Gerard DeRose
87390665f6 crud.Add.get_args() and get_options() now yield static values in takes_args, takes_options after the automagic ones 2008-10-09 11:33:35 -06:00
Jason Gerard DeRose
887016e69d Base Command.execute() method now raises NotImplementedError; updated unit tests 2008-10-08 18:18:13 -06:00
Jason Gerard DeRose
bc9edbfdf6 Changed sub-package docstrings in tests/ to make consintent with other packages 2008-10-08 01:30:52 -06:00
Jason Gerard DeRose
b246dbabcf PEP 257: cleaned up docstrings in test_ipa_types.py 2008-10-08 01:24:39 -06:00
Jason Gerard DeRose
048678fc77 Fixed two PEP 257 violations I missed in test_plugable.py 2008-10-08 01:00:44 -06:00
Jason Gerard DeRose
ad2cd6560b PEP 257: cleaned up docstrings in test_frontend.py 2008-10-08 00:58:53 -06:00
Jason Gerard DeRose
33648655fe PEP 257: cleaned up docstrings in test_errors.py 2008-10-08 00:41:08 -06:00
Jason Gerard DeRose
7599beb693 Restructured test_crud.py around new CrudChecker base class 2008-10-08 00:17:32 -06:00
Jason Gerard DeRose
f5ea3b1bb9 Made docstrings in test_crud.py contistent with rest 2008-10-07 23:36:58 -06:00
Jason Gerard DeRose
0d2b5a8892 PEP 257: cleaned up docstrings in test_config.py 2008-10-07 23:31:40 -06:00
Jason Gerard DeRose
9bff91fc08 PEP 257: cleaned up docstrings in test_cli.py 2008-10-07 23:29:42 -06:00
Jason Gerard DeRose
97634e18c7 PEP 257: cleaned up docstrings in test_plugable.py 2008-10-07 23:20:00 -06:00
Jason Gerard DeRose
deb8e3dfc8 Renamed tests/tstutil.py to tests/util.py 2008-10-07 22:30:53 -06:00
Jason Gerard DeRose
3fdabc604e -m 2008-10-07 22:20:00 -06:00
Jason Gerard DeRose
f6ac2df6bd Moved tstutil.py into base of tests so it can be used by all test subpackages more easily 2008-10-07 21:59:47 -06:00
Jason Gerard DeRose
a1e504d442 Moved ipa_server/tests/ to tests/test_ipa_server/ 2008-10-07 21:33:48 -06:00
Jason Gerard DeRose
af56c71d50 Cleaned up package and module level docstrings for everything in tests/ 2008-10-07 21:25:23 -06:00
Jason Gerard DeRose
151b8ba38a Moved ipa_webui/tests/ to tests/test_ipa_webui/ 2008-10-07 21:06:01 -06:00
Jason Gerard DeRose
7721443a62 Moved ipalib/tests/ into tests/test_ipalib/ 2008-10-07 20:41:15 -06:00
Jason Gerard DeRose
2617f89b6a Added top-level tests/ package that will contain all unit tests 2008-10-07 20:36:44 -06:00