Comments (1)
def test_database(client): """initial test. ensure that the database exists""" tester = Path("Flaskr.db").is_file() assert tester
I changed the test to the above code and it worked for me while working on Pycharm Professional
from flaskr-tdd.
Related Issues (20)
- Add Selenium new step HOT 1
- I think you should menthod a postgresql config on Heroku. HOT 1
- Question: What does passing self to test_client() do?
- [schema.sql]Incorrect syntax near ','. Expecting ID, QUOTED_ID, STRING, or TEXT_LEX. HOT 2
- Posts can be deleted even though user isn't logged in HOT 6
- Add a section: Here's what Heroku is and where to get it
- Consider renaming app.test.py to something else HOT 2
- delete_entry doesn't check if a post actually exists HOT 1
- Why unittest and not pytest? HOT 1
- Improve README
- First test database test HOT 4
- (env)$ python create_db.py HOT 3
- Circular depedency when adding SQLAlchemy HOT 1
- AttributeError: can't set attribute when running create_db.py for the first time with SQLAlchemy HOT 1
- Add a section how to unit test the JavaScript
- 你会用TDD吗?
- Application error on website
- test_messages, maybe a mistake, maybe my error
- Issue with SQLAlchemy tests
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 flaskr-tdd.