Skip to content

Commit

Permalink
rem unnecessary test
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmonteiro committed Apr 2, 2024
1 parent 77a01fb commit 4ba6b2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 32 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='tercen_python_client',
version='0.10.6',
version='0.10.7',
packages=find_packages(exclude=['tests']),
install_requires=[
'numpy==1.22.*',
Expand Down
32 changes: 1 addition & 31 deletions tests/test_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
FileDocument, Project, ImportGitDatasetTask

class TestFileService(unittest.TestCase):
#TEST UPLOAD DOWNLOAD worksheet...

def setUp(self):
envs = os.environ
isLocal = False
Expand Down Expand Up @@ -72,36 +72,6 @@ def test_upload_download_file(self):
assert data.read() == bytes_data
self.client.teamService.delete(project.id, project.rev)

def test_upload_download_large_json_file(self):
import json
with open('./tests/data/worksheet.jwks', "r") as file:
jsonContent = file.read()



df = pd.DataFrame({"Content":[jsonContent]})

# df = pd.read_csv('./tests/data/worksheet.jwks')
# # df = pd.read_csv('./tests/data/scRNAseq_large_by25_no0.csv')
bytes_data = utl.dataframe_to_bytes(df)


project = Project()
project.name = 'python_project_file'
project.acl.owner = 'test'
project = self.client.projectService.create(project)
file = FileDocument()
file.name = "hello.txt"
file.acl.owner = 'test'
file.projectId = project.id



# bytes_data = "hello\n\nhello\n\n42".encode("utf_8")
file = self.client.fileService.upload(file, bytes_data)
data = self.client.fileService.download(file.id)
assert data.read() == bytes_data
self.client.teamService.delete(project.id, project.rev)

def test_upload_download_large_file(self):
df = pd.read_csv('./tests/data/hospitals.csv')
Expand Down

0 comments on commit 4ba6b2b

Please sign in to comment.