Skip to content
Merged
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
27 changes: 27 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -847,3 +847,30 @@ Gzip support
_db_client = InfluxDBClient(url="http://localhost:9999", token="my-token", org="my-org", enable_gzip=True)

.. marker-gzip-end

Local tests
-----------

.. code-block:: python

# start/restart InfluxDB2 on local machine using docker
./scripts/influxdb-restart.sh

# install requirements
pip install -r requirements.txt --user
pip install -r extra-requirements.txt --user
pip install -r test-requirements.txt --user

# run unit & integration tests
pytest tests


Contributing
------------

Bug reports and pull requests are welcome on GitHub at `https://github.com/influxdata/influxdb-client-python <https://github.com/influxdata/influxdb-client-python>`_.

License
-------

The gem is available as open source under the terms of the `MIT License <https://opensource.org/licenses/MIT>`_.
1 change: 0 additions & 1 deletion tests/test_AuthorizationApi.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ def test_updateAuthorizationStatus(self):
authorization = self.authorization_api().update_authorization(authorization)
self.assertEqual(authorization.status, "active")

@pytest.mark.skip(reason="https://github.com/influxdata/influxdb/issues/16833")
def test_deleteAuthorization(self):
create_authorization = self.authorization_api().create_authorization(self.organization.id,
self.new_permissions())
Expand Down
1 change: 0 additions & 1 deletion tests/test_BucketsApi.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ def test_create_delete_bucket(self):
assert self.buckets_api.find_bucket_by_id(my_bucket.id)
assert "bucket not found" in e.value.body

@pytest.mark.skip(reason="https://github.com/influxdata/influxdb/issues/14900")
def test_find_by_name(self):
my_org = self.find_my_org()

Expand Down
4 changes: 1 addition & 3 deletions tests/test_TasksApi.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ def test_find_task_by_id(self):
task_by_id = self.tasks_api.find_task_by_id(task.id)
self.assertEqual(task, task_by_id)

@pytest.mark.skip(reason="https://github.com/influxdata/influxdb/issues/13576")
@pytest.mark.skip(reason="https://github.com/influxdata/influxdb/issues/11590")
def test_find_task_by_user_id(self):
task_user = self.users_api.create_user(self.generate_name("TaskUser"))
Expand Down Expand Up @@ -377,9 +376,8 @@ def test_cancel_run_not_exist(self):
assert "failed to cancel run" in e.value.body
assert "run not found" in e.value.body

@pytest.mark.skip(reason="uncomment after beta")
def test_cancel_task_not_exist(self):
with pytest.raises(ApiException) as e:
assert self.tasks_api.cancel_run("020f755c3c082000", "020f755c3c082000")
assert "failed to cancel run" in e.value.body
assert "run not found" in e.value.body
assert "task not found" in e.value.body