[openstack-dev] [oslo] UUID sentinel needs a home

Dan Smith dms at danplanet.com
Thu Aug 23 17:06:51 UTC 2018


> Do you mean an actual fixture, that would be used like:
>
>  class MyTestCase(testtools.TestCase):
>      def setUp(self):
>          self.uuids = self.useFixture(oslofx.UUIDSentinelFixture()).uuids
>
>      def test_foo(self):
>          do_a_thing_with(self.uuids.foo)
>
> ?
>
> That's... okay I guess, but the refactoring necessary to cut over to it
> will now entail adding 'self.' to every reference. Is there any way
> around that?

I don't think it's okay. It makes it a lot more work to use it, where
merely importing it (exactly like mock.sentinel) is a large factor in
how incredibly convenient it is.

--Dan



More information about the OpenStack-dev mailing list