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
Added CL/CV Support and tests #19
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
2724007
Added CL/CV and one test
flabbet af7c813
Removed not supported python versions
flabbet a47ec1c
Added codecov to setup
flabbet 4584346
Small travis update
flabbet 9df4dc2
Another small travis update
flabbet 296160f
Hopefully final travis changes
flabbet 01cd605
Changed test script path
flabbet 2e62c5a
Removed placeholder test
flabbet 29d505f
Updated test enviroment
flabbet 2298966
Added username env variable to test enviroment
flabbet 9a332b4
Wrote 4 tests
flabbet c719f17
Fixed one test
flabbet e4ccfeb
Wrote 5 more tests
flabbet 02d0cb5
Changed update token on init statement
flabbet f4d8717
Resloved utils
flabbet 287d231
merge conflict solve wip
flabbet 17f263c
Merge remote-tracking branch 'SwagLyrics/master'
flabbet 9e3f74d
Merge conflict fix
flabbet 71d9276
Wrote a lot of tests
flabbet d1aebae
Changed patching enviroment variables in tests
flabbet fe1347f
Removed fake unsupported from tests
flabbet 433c3c0
Removed unused import
flabbet 081a7b6
WIP merge conflict
flabbet dfe528e
Merge remote-tracking branch 'SwagLyrics/master'
flabbet 3058068
Merge conflict resolved
flabbet 3587f00
Small fixes
flabbet 7c82795
Changed test parameter from set to list
flabbet File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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,14 @@ | ||
[run] | ||
branch = True | ||
source = swaglyrics-backend | ||
|
||
[report] | ||
exclude_lines = | ||
if self.debug: | ||
pragma: no cover | ||
raise NotImplementedError | ||
if __name__ == .__main__.: | ||
ignore_errors = True | ||
omit = | ||
tests/* | ||
setup.py |
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 |
---|---|---|
|
@@ -4,3 +4,8 @@ | |
__pycache__/ | ||
.env | ||
/unsupported.txt | ||
venv/ | ||
|
||
.coverage | ||
|
||
swaglyrics_backend.egg-info/ |
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,11 @@ | ||
language: python | ||
python: | ||
- "3.8" | ||
- "3.8-dev" | ||
- "nightly" | ||
install: | ||
- pip3 install -r requirements.txt | ||
- pip3 install -e .[dev] | ||
script: | ||
- pytest --cov-config=.coveragerc --cov=swaglyrics_backend tests/ | ||
- codecov |
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,26 @@ | ||
import setuptools | ||
|
||
import swaglyrics_backend | ||
|
||
with open("README.md", "r") as fh: | ||
long_description = fh.read() | ||
|
||
setuptools.setup( | ||
name="swaglyrics_backend", | ||
version=swaglyrics_backend.__version__, | ||
author="Aadi Bajpai", | ||
description="Server side code to communicate with SwagLyrics, manage unsupported songs and make an issue on the " | ||
"main repo when the program encounters a song it can't fetch lyrics for.", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/SwagLyrics/swaglyrics-backend", | ||
packages=['swaglyrics_backend'], | ||
install_requires=['flask', 'Flask-Limiter', 'GitPython', 'flask_sqlalchemy', 'swaglyrics', 'requests'], | ||
extras_require={ | ||
'dev': [ | ||
'pytest', | ||
'pytest-cov', | ||
'codecov' | ||
] | ||
}, | ||
) |
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 @@ | ||
__version__ = "0.0.1" |
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
File renamed without changes.
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert this maybe? formatting changes interfere with reviewing the main code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's still slightly different :P