Comments (5)
You can call DBSession.remove()
prior to calling DBSession.configure()
in your test set up code.
from webtest.
@dobesv Thanks, that's awesome, anyone +1 to put this in the webtest docs?
from webtest.
This is something a user should handle, nothing in the scope of WebTest. Indeed, SQLAlchemy raises a warning when you try to configure an engine for the second time.
from webtest.
I'm having the same problem with my WebTest tests. Stumbled on this while Googling, and still haven't found a solution. If anyone stops by here and knows how to resolve this, please comment.
from webtest.
put a pdb when you assemble the session, run the tests and you'll see when it's called for the second time
from webtest.
Related Issues (20)
- Default value for button and submit is wrong HOT 6
- Webtest fails with PYTHONOPTIMIZE=2 HOT 1
- `MultipleSelect().value = []` doesn't work HOT 2
- webtest.forms.Radio() pays no attention to the 'disabled' attribute of <input type="radio"> HOT 1
- Can we (optionally) allow for malformed JSON content when testing? HOT 3
- urllib.parse.splithost() is deprecated as of 3.8 HOT 2
- Forms with default action wrongly submit to "/" HOT 1
- head() got an unexpected keyword argument 'params'
- Fix simple typo: requets -> requests
- Is there any way to open a popup form when click? HOT 2
- Allow checking client-side validation during form submit HOT 2
- TestResponse.lxml raises ValueError on XML responses due to ElementTree construction from unicode string
- Can't have more then 1 form in html HOT 2
- Multiple file input support
- DELETE params does not behave like GET
- PyQuery object doesn't use the correct parser
- Prettify HTML output
- Perform real HTTP requests when needed HOT 2
- Add default headers to TestApp HOT 1
- lxml as BeautifulSoup parser HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webtest.