Skip to content

Edited main.py and test.py#16

Merged
pradeeban merged 4 commits intoControlCore-Project:devfrom
amit-62:dev1
Sep 1, 2022
Merged

Edited main.py and test.py#16
pradeeban merged 4 commits intoControlCore-Project:devfrom
amit-62:dev1

Conversation

@amit-62
Copy link
Contributor

@amit-62 amit-62 commented Aug 18, 2022

No description provided.

fri/test.py Outdated
build("test", "sample1", "xyz")
debug("sample1")
destroy("sample1")
# getFilesList("fri")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are these two lines commented out?

Copy link
Member

@pradeeban pradeeban left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls address the comments.

fri/test.py Outdated
files=[
('files[]',('example.py',open(path,'rb'),'application/octet-stream'))
]
# files=[
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are these commented out?

fri/test.py Outdated
# file list to be uploaded
files=[
#('files[]',(file_name,open(file_path,'rb'),'application/octet-stream'))
('files[]',('controller.py',open('/home/amit/Desktop/test_xyz/controller.py','rb'),'application/octet-stream')),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls do not hard-code the values such as "/home/amit" as these will not work outside your computer. Use relative paths instead.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace '/home/amit/Desktop/test_xyz/controller.py' with '../demo/controller.py'

Copy link
Member

@pradeeban pradeeban left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do not remove the "apikey" in the request path of methods.

@pradeeban pradeeban merged commit 7519293 into ControlCore-Project:dev Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants