-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
swimlane: disable library test. its dependencies are so old it breaks…
… python > 3.10
- Loading branch information
1 parent
48c2819
commit 9d6a1a5
Showing
2 changed files
with
43 additions
and
43 deletions.
There are no files selected for viewing
84 changes: 42 additions & 42 deletions
84
automon/integrations/swimlaneWrapper/tests/test_library_record_create.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 |
---|---|---|
@@ -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() |
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