mbrochh / django-testing-cookbook Goto Github PK
View Code? Open in Web Editor NEWDummy-code for a Singapore Djangonauts talk
Dummy-code for a Singapore Djangonauts talk
Great talk!
I don't know where can I had my questions
()()
pattern i.e. views.PostUpdateView.as_view()(req, pk=post.pk)
. Could you elaborate more on this pattern or refer me to a documentationself.get.client()
instead of the RequestFactory()
because we can test the template ('birdie/update.html') also. Because right now, we seems to only mock the template. For the benefit of this meetup's workshop using RequestFactory
is faster but in a day to day test do you use self.get.client()
tests_views.py
in the method the test_security(self):
Why we don't write an Assert
for 404 like we did for assert post.body == 'New Body Text!', 'Should update the post'
req.user = AnonymousUser()
we added instead on the previous test test_post(self)
. I tought that ever test needs to create a new user session (or object)A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.