need feature flag test fixture
Bug #645768 reported by
Martin Pool
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Māris Fogels |
Bug Description
I'd like to be able to write tests which say
with FeatureFixture(
... test what happens
at the moment it requires manually creating rules which is a bit gross.
Related branches
lp:~mars/launchpad/add-profiling-feature-flag
On hold
for merging
into
lp:launchpad
- Launchpad code reviewers: Pending requested
-
Diff: 408 lines (+88/-51)3 files modifiedlib/canonical/launchpad/doc/profiling.txt (+21/-5)
lib/lp/services/profile/profile.py (+13/-2)
lib/lp/services/profile/tests.py (+54/-44)
lp:~mars/launchpad/feature-flag-fixture
- Martin Pool (community): Approve
- Jonathan Lange (community): Approve
-
Diff: 147 lines (+60/-21)4 files modifiedlib/lp/services/features/__init__.py (+34/-0)
lib/lp/services/features/testing.py (+16/-11)
lib/lp/services/features/tests/test_helpers.py (+4/-0)
lib/lp/services/memcache/doc/tales-cache.txt (+6/-10)
Changed in launchpad-foundations: | |
status: | Confirmed → In Progress |
Changed in launchpad-foundations: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
maris is working on this:
http:// pastebin. ubuntu. com/498904/
lp:~mars/launchpad/add-profiling-feature-flag