-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple Issues #51
Comments
Thanks for the input. You're mentioning that you're using RE: Circular dependencies / not being able to run code I was worried the RE: Tests RE: Readme
|
Flask version: 0.12 I have tried running: They both encounter the same error : Stack Trace``` Traceback (most recent call last): File "api_server.py", line 7, in from server.api import user_stream, tag_stream, user_feed, follower_relations File "/home/asms/src/uwt/kwitter/server/api/user_stream.py", line 1, in from logic.shared import get_all File "/home/asms/src/uwt/kwitter/logic/shared/get_all.py", line 7, in from logic.tweets import tweet File "/home/asms/src/uwt/kwitter/logic/tweets/tweet.py", line 1, in from logic.tweets import tweet_management File "/home/asms/src/uwt/kwitter/logic/tweets/tweet_management.py", line 3, in from logic.tags import tag as tag_module File "/home/asms/src/uwt/kwitter/logic/tags/tag.py", line 1, in from logic.tags import tag_management File "/home/asms/src/uwt/kwitter/logic/tags/tag_management.py", line 1, in from logic.tags import tag as tag_module ImportError: cannot import name 'tag' ```After fixing that, it encounters another. I don't know how many there are, but there were too many to do a quick PR for. It would require some larger design decisions. |
I'm adding multiple issues here based on my experience of the project, and I'll leave it up to the maintainers to close this issue and subdivide these into smaller tasks.
README (example)
Install pyenv
python setup.py install
FLASK_APP=kwitter flask run
Include any style guides.
python -m unittest
setup.py
I've already seen an issue for this, but this would be fairly straightforward:
However, this would require that you put kwitter into a module and you might have update the import statements within your files.
requirements.txt
If you keep this file, it should at least have:
Refactoring/Circular dependencies
There are a lot of circular dependencies in the code. e.g. tag_management.py imports tag.py, and tag.py imports tag_management.py.
This was the biggest issue for me, and prevented me from being able to run the app. This might be specific to my dev environment, and if so a proper README will be all that is required.
Testing
Add tests for every model and controller. These should already exist. Backfill them before adding any additional functionality. I would suggest refactoring first, since that will break break a lot of the tests.
It seems like you are using unittest as your testing framework.
python -m unittest doesn't run any of your tests. I think there is a specific pattern for file names for them to be discovered automatically i.e.
test_*.py`.The text was updated successfully, but these errors were encountered: