Commit Graph

31 Commits

Author SHA1 Message Date
Rob Crittenden
766757e4d4 Fix unicode failures in Env tests and dn failures in XML-RPC tests 2010-02-26 12:31:11 -05:00
Jason Gerard DeRose
ae38a2461f Force xmlrpc tests to run with in_tree=True so config files in /etc/ipa/ don't get read; cleaned up config.Env automagic with regard to running in-tree vs. installed 2009-05-11 16:17:08 -04:00
Jason Gerard DeRose
166b3ca80c Added unit test for Env.__islocked__(); unit test for Env.__lock__() now also tests with base.lock() function 2009-01-06 18:21:46 -07:00
Jason Gerard DeRose
379c549fc1 Env now supports float values 2008-12-30 15:02:15 -07:00
Jason Gerard DeRose
bc23957247 Added unit test for Env._merge() 2008-12-30 14:38:05 -07:00
Jason Gerard DeRose
11e165073e Docstring cleanup in the Env bootstraping methods 2008-12-30 03:11:45 -07:00
Jason Gerard DeRose
447c88a2bb Started moving some core classes and functions from plugable.py to new base.py module 2008-12-30 00:45:48 -07:00
Jason Gerard DeRose
e14fc84dfc Renamed Env._merge_config() to Env._merge_from_file() 2008-12-29 21:23:34 -07:00
Jason Gerard DeRose
16526142f3 Finished Env class docstring; more organizational cleanup in Env and its unit tests 2008-12-23 01:11:03 -07:00
Jason Gerard DeRose
fd43b39145 Moved setting of run-time variables from Env.__init__() to Env._bootstrap() 2008-12-22 23:09:35 -07:00
Jason Gerard DeRose
01cae56e0a Some more reorganization in Env and added class docstring to Env with lots of examples 2008-12-22 21:02:43 -07:00
Jason Gerard DeRose
6b055b435f Cleaned up Env.__setattr__() and Env.__setitem__() a bit updated their unit tests 2008-12-22 17:29:11 -07:00
Jason Gerard DeRose
014cca57ad The Env.__setitem__() implied conversion is now case sensitive; Env.__setitem__() now also accepts None as a value 2008-12-22 16:16:57 -07:00
Jason Gerard DeRose
c070d390e9 Removed Env.__getattr__(); Env no longer accepts callables for values (no more dynamic/lazy values) 2008-12-22 15:51:54 -07:00
Jason Gerard DeRose
5b637f6a18 Removed depreciated code from config.py; removed corresponding unit tests 2008-12-22 15:41:24 -07: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
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
Martin Nagy
18e74643a6 Add comments in config.py and fix Environment.get() 2008-10-20 19:54:30 +02: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
0d2b5a8892 PEP 257: cleaned up docstrings in test_config.py 2008-10-07 23:31:40 -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
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
af56c71d50 Cleaned up package and module level docstrings for everything in tests/ 2008-10-07 21:25:23 -06:00
Jason Gerard DeRose
7721443a62 Moved ipalib/tests/ into tests/test_ipalib/ 2008-10-07 20:41:15 -06:00