> Are you using EnvironmentStub, or is your script using or creating a
> full-blown project?

Neither, I think.  I modeled my tests on TicketImportPlugin.

> Remember that you need to have components marked as enabled for Trac to
> register them upon discovery, and only trac.* components may be
> auto-enabled.

That may be it.  Thought I thought I had .* from my plugin enabled.
I'll confirm.

> Typically my setUp() code contains...:
>
>         self.env = EnvironmentStub(
>                 enable=['trac.*', 'tractalk.core.*', 'tractalk.plugins.*'])
>
> ...and similar to enable the parts I need for each test case.
>
> Have a look at the test infrastructure for one of my plugins for
> inspiration:
>
> https://www.coderesort.com/p/open/browser/trac-talkplugin/trunk/tractalk/tests

Thanks for the pointer.  That helps a lot.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-dev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to