Skip to content
Open

V2 #103

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ __pycache__
build
dist
docs/_build
.DS_Store
.pytest_cache

# PyCharm files
*.iml
Expand Down
8 changes: 8 additions & 0 deletions .pytest_cache/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# pytest cache directory #

This directory contains data from the pytest's cache plugin,
which provides the `--lf` and `--ff` options, as well as the `cache` fixture.

**Do not** commit this to version control.

See [the docs](https://docs.pytest.org/en/latest/cache.html) for more information.
14 changes: 14 additions & 0 deletions .pytest_cache/v/cache/lastfailed
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"tests/datadotworld/client/test_client.py::TestApiClient::()::test_create_project": true,
"tests/datadotworld/client/test_client.py::TestApiClient::()::test_get_project[simple_key]": true,
"tests/datadotworld/client/test_client.py::TestApiClient::()::test_get_project[url]": true,
"tests/datadotworld/client/test_client.py::TestApiClient::()::test_update_project[simple_key]": true,
"tests/datadotworld/client/test_client.py::TestApiClient::()::test_update_project[url]": true,
"tests/datadotworld/models/test_dataset.py::TestLocalDataset::()::test_tables": true,
"tests/datadotworld/models/test_project.py::MyTest::test": true,
"tests/datadotworld/models/test_project.py::MyTest::test_create_project": true,
"tests/datadotworld/models/test_project.py::MyTest::test_get_project": true,
"tests/datadotworld/models/test_project.py::MyTest::test_toplevel_get_project": true,
"tests/datadotworld/models/test_project.py::MyTest::test_valid_get_project": true,
"tests/datadotworld/models/test_project.py::TestProjects::test_create_project": true
}
182 changes: 182 additions & 0 deletions .pytest_cache/v/cache/nodeids

Large diffs are not rendered by default.

7 changes: 0 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,3 @@ test:
coverage run setup.py test
test-report:
coverage report -m
update_swagger_codegen:
pushd datadotworld/client; \
curl https://api.data.world/v0/swagger.json -o swagger-dwapi-def.json; \
swagger-codegen generate -l python --git-repo-id=data.world-py --git-user-id=datadotworld \
--http-user-agent="data.world-py" --invoker-package=client \
-i swagger-dwapi-def.json -c swagger-codegen-config.json --release-note=""; \
popd;
6 changes: 3 additions & 3 deletions datadotworld/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def _get_instance(profile, **kwargs):
InlineConfig(kwargs.get('auth_token')),
EnvConfig(),
FileConfig()])
if profile == 'default'
else FileConfig(profile=profile))
if profile == 'default'
else FileConfig(profile=profile))
instance = DataDotWorld(config=config_param)
__instances[profile] = instance
return instance
Expand Down Expand Up @@ -243,7 +243,7 @@ def api_client(profile='default', **kwargs):
... 'jonloyens/an-intro-to-dataworld-dataset').get('title')
'An Intro to data.world Dataset'
"""
return _get_instance(profile, **kwargs).api_client
return _get_instance(profile, **kwargs).api_client.ApiClient


if __name__ == "__main__":
Expand Down
Binary file added datadotworld/client/.DS_Store
Binary file not shown.
25 changes: 0 additions & 25 deletions datadotworld/client/.swagger-codegen-ignore

This file was deleted.

1 change: 0 additions & 1 deletion datadotworld/client/.swagger-codegen/VERSION

This file was deleted.

67 changes: 0 additions & 67 deletions datadotworld/client/_swagger/__init__.py

This file was deleted.

Loading