Skip to content

Commit 577f86e

Browse files
authored
Merge pull request #9 from Losant/remove-python-test
moving tests to use tox and pytests
2 parents 6866c7f + 1e87761 commit 577f86e

106 files changed

Lines changed: 225 additions & 211 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ jobs:
2424
uses: actions/setup-python@v5
2525
with:
2626
python-version: ${{ matrix.python }}
27-
- name: Install deps
27+
- name: Reinstall Pip
2828
run: pip install --upgrade --force-reinstall pip
29+
- name: Install Test Deps
30+
run: pip install ".[test]"
2931
- name: Run tests
30-
run: python setup.py test
32+
run: python -m tox

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2024 Losant IoT, Inc.
3+
Copyright (c) 2025 Losant IoT, Inc.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pip install losant-rest
2323
Below is a high-level example of using the Losant Python REST API client to authenticate against the Losant Platform and report state for a device.
2424

2525
```python
26-
from platformrest import Client
26+
from losant_rest import Client
2727
from analog import AnalogSensor
2828

2929
client = Client()
@@ -356,6 +356,6 @@ Each of the following is a property on the client object, and returns a wrapper
356356

357357
*****
358358

359-
Copyright (c) 2024 Losant IoT, Inc
359+
Copyright (c) 2025 Losant IoT, Inc
360360

361361
<https://www.losant.com>

examples/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from platformrest import Client
1+
from losant_rest import Client
22
client = Client()
33

44

examples/list_devices.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from platformrest import Client
1+
from losant_rest import Client
22

33
client = Client('my_token')
44
result = client.devices.get(applicationId='myAppId')
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
The MIT License (MIT)
33
4-
Copyright (c) 2024 Losant IoT, Inc.
4+
Copyright (c) 2025 Losant IoT, Inc.
55
66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal
@@ -23,4 +23,4 @@
2323
"""
2424

2525
from .client import Client
26-
from .platform_error import PlatformError
26+
from .losant_error import LosantError
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
The MIT License (MIT)
33
4-
Copyright (c) 2024 Losant IoT, Inc.
4+
Copyright (c) 2025 Losant IoT, Inc.
55
66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal
@@ -25,7 +25,7 @@
2525

2626
import json
2727

28-
""" Module for Platform API Application wrapper class """
28+
""" Module for Losant API Application wrapper class """
2929
# pylint: disable=C0301
3030

3131
class Application(object):
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
The MIT License (MIT)
33
4-
Copyright (c) 2024 Losant IoT, Inc.
4+
Copyright (c) 2025 Losant IoT, Inc.
55
66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal
@@ -25,7 +25,7 @@
2525

2626
import json
2727

28-
""" Module for Platform API ApplicationApiToken wrapper class """
28+
""" Module for Losant API ApplicationApiToken wrapper class """
2929
# pylint: disable=C0301
3030

3131
class ApplicationApiToken(object):
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
The MIT License (MIT)
33
4-
Copyright (c) 2024 Losant IoT, Inc.
4+
Copyright (c) 2025 Losant IoT, Inc.
55
66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal
@@ -25,7 +25,7 @@
2525

2626
import json
2727

28-
""" Module for Platform API ApplicationApiTokens wrapper class """
28+
""" Module for Losant API ApplicationApiTokens wrapper class """
2929
# pylint: disable=C0301
3030

3131
class ApplicationApiTokens(object):
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
The MIT License (MIT)
33
4-
Copyright (c) 2024 Losant IoT, Inc.
4+
Copyright (c) 2025 Losant IoT, Inc.
55
66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal
@@ -25,7 +25,7 @@
2525

2626
import json
2727

28-
""" Module for Platform API ApplicationCertificate wrapper class """
28+
""" Module for Losant API ApplicationCertificate wrapper class """
2929
# pylint: disable=C0301
3030

3131
class ApplicationCertificate(object):

0 commit comments

Comments
 (0)