Skip to content

Commit

Permalink
swimlane: disable library test. its dependencies are so old it breaks…
Browse files Browse the repository at this point in the history
… python > 3.10
  • Loading branch information
laerfulaolun committed Mar 19, 2024
1 parent 48c2819 commit 9d6a1a5
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 43 deletions.
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
import os
import json
import unittest
import swimlane

from swimlane import Swimlane
from automon import environ

appId = environ('SWIMLANE_APP_ID')
host = environ('SWIMLANE_HOST')
user = environ('SWIMLANE_USERNAME')
password = environ('SWIMLANE_PASSWORD')


class MyTestCase(unittest.TestCase):

if host and user and password and appId:
def test_login(self):
swimlane = Swimlane(host, user, password, verify_ssl=False)

app = swimlane.apps.get(id=appId)

# records = app.records.get()
# records = app.records.search('.')

# swimlane.exceptions.UnknownField: "<App: AUTO ASSET COLLECTION (AAC)> has no field 'test'"
record = app.records.create(
json=json.dumps(dict(
string='string',
int=1,
list=[1, 2, 3],
dict=dict(
key='value'
)
))
)

pass


if __name__ == '__main__':
unittest.main()
# import os
# import json
# import unittest
# import swimlane
#
# from swimlane import Swimlane
# from automon import environ
#
# appId = environ('SWIMLANE_APP_ID')
# host = environ('SWIMLANE_HOST')
# user = environ('SWIMLANE_USERNAME')
# password = environ('SWIMLANE_PASSWORD')
#
#
# class MyTestCase(unittest.TestCase):
#
# if host and user and password and appId:
# def test_login(self):
# swimlane = Swimlane(host, user, password, verify_ssl=False)
#
# app = swimlane.apps.get(id=appId)
#
# # records = app.records.get()
# # records = app.records.search('.')
#
# # swimlane.exceptions.UnknownField: "<App: AUTO ASSET COLLECTION (AAC)> has no field 'test'"
# record = app.records.create(
# json=json.dumps(dict(
# string='string',
# int=1,
# list=[1, 2, 3],
# dict=dict(
# key='value'
# )
# ))
# )
#
# pass
#
#
# if __name__ == '__main__':
# unittest.main()
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ slackclient>=2.9.3
splunk-sdk>=1.6.16

# swimlane
swimlane>=10.14.0
#swimlane>=10.14.0

# unit testing
pytest>=6.2.4
Expand Down

0 comments on commit 9d6a1a5

Please sign in to comment.