This repository has been archived by the owner on Feb 9, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Factored out test layer with fanstatic middleware.
- Loading branch information
1 parent
aff479b
commit 773fba2
Showing
2 changed files
with
13 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from zope.app.wsgi.testlayer import BrowserLayer | ||
import fanstatic | ||
|
||
class ZopeFanstaticBrowserLayer(BrowserLayer): | ||
""" A zope testlayer with fanstatic Injector. """ | ||
|
||
def setup_middleware(self, app): | ||
return fanstatic.Injector(app) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters