[openstack-dev] [Horizon][dashboards] Running the 'profile' specific unit tests

Julie Pichon jpichon at redhat.com
Wed Apr 30 08:59:56 UTC 2014


On 24/04/14 16:05, Abishek Subramanian (absubram) wrote:
> Just to add to this - Akihiro did mention the usage of @override_settings
> I've seen examples of this in existing unit tests and I can implement
> something 
> similar. 
> 
> This will mean however that we will have the test with the default setting
> and then the same test again with the override which accepts the
> profile_id yes?

That's fine. We do this in places already, for example for testing with
and without domains [1] or with different services or extensions enabled
[2] [3].

Julie


[1]
https://git.openstack.org/cgit/openstack/horizon/tree/openstack_dashboard/dashboards/admin/users/tests.py
[2]
https://git.openstack.org/cgit/openstack/horizon/tree/openstack_dashboard/dashboards/project/overview/tests.py#n321
[3]
https://git.openstack.org/cgit/openstack/horizon/tree/openstack_dashboard/dashboards/project/overview/tests.py#n275




More information about the OpenStack-dev mailing list