Commit Graph

6 Commits

Author SHA1 Message Date
Clint Byrum a60f6d4569 Do not initialize anything during import phase
The structure of the program is compromised by doing too much logic in
the import phase. We can read the code more cleanly if we can see where
the intended initialization code is called. This may make tests slightly
more tedious to write, but that should be handled by writing generic
fixtures which can be reused for exactly this purpose.

Change-Id: I1d221e2f90d1f6e89717a37d2128caabd077d30a
2013-04-24 10:03:06 -07:00
Zane Bitter 357d977a0a Register DB options independently of engine
We need a script that will just manage database migrations (for bug
1072949), so for this purpose we want to register only the DB options, not
all of the engine options.

Change-Id: I99bb8d5800741d71572a14c3a5a33dcf0e1b0268
2013-03-11 17:36:06 +01:00
Zane Bitter 180df199fe Automatically register engine options
Register the engine options as soon as we import something from the engine
package. This means we do not need to explicitly do it in all of the unit
tests.

Change-Id: I8fb0c8665d0e0255521e21a6aac223ad1e3b1b25
Signed-off-by: Zane Bitter <zbitter@redhat.com>
2012-11-30 17:05:13 +01:00
Angus Salkeld dfe12cbaba Fix a heap of pep8 errors
./run_tests.sh is much cleaner now.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-04-16 17:07:07 +10:00
Chris Alfonso 589eaa75e4 Removing OpenStack LLC copyright 2012-03-28 12:50:49 -04:00
Angus Salkeld 6161c7aa85 Start separating the api and the implementation.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-03-20 12:58:54 +11:00