Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

write tests and fixed some bugs. #2

Merged
merged 5 commits into from
Oct 5, 2020

Conversation

IamTugy
Copy link
Owner

@IamTugy IamTugy commented Sep 28, 2020

No description provided.

pyminio/__init__.py Outdated Show resolved Hide resolved
pyminio/main.py Outdated Show resolved Hide resolved
pyminio/main.py Outdated Show resolved Hide resolved
pyminio/main.py Show resolved Hide resolved
pyminio/main.py Outdated Show resolved Hide resolved
pyminio/pyminio_test_class.py Outdated Show resolved Hide resolved
tests.py Outdated Show resolved Hide resolved
tests.py Outdated Show resolved Hide resolved
tests.py Outdated Show resolved Hide resolved
tests.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@IamShobe IamShobe left a comment

Choose a reason for hiding this comment

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

match should be converted to a class :)
consider using different name for match in method:
target, dest, src
and methods:
target.is_root()
target.is_directory()
target.is_file()
target.is_bucket()
properties:
target.relative_path
target.bucket
target.prefix
target.filename

opened task #10

pyminio/main.py Show resolved Hide resolved
pyminio/tests/tests.py Outdated Show resolved Hide resolved
pyminio/main.py Outdated Show resolved Hide resolved
pyminio/main.py Outdated Show resolved Hide resolved
pyminio/main.py Show resolved Hide resolved
pyminio/tests/tests.py Outdated Show resolved Hide resolved
pyminio/main.py Outdated Show resolved Hide resolved
pyminio/main.py Show resolved Hide resolved
pyminio/main.py Outdated Show resolved Hide resolved
pyminio/main.py Outdated Show resolved Hide resolved
@IamShobe
Copy link
Collaborator

DONT ADD NEW THINGS TO THIS BRANCH AS ITS DIFFICULT ALREADY READING ALL.
SPLIT TO MORE BRANCHES NEXT TIME

@IamTugy IamTugy linked an issue Sep 29, 2020 that may be closed by this pull request
pyminio/main.py Outdated Show resolved Hide resolved
pyminio/main.py Outdated Show resolved Hide resolved
pyminio/main.py Outdated Show resolved Hide resolved
pyminio/main.py Outdated Show resolved Hide resolved
pyminio/main.py Outdated Show resolved Hide resolved
pyminio/main.py Outdated Show resolved Hide resolved
pyminio/main.py Outdated Show resolved Hide resolved
self._extract_metadata(details.metadata)

metadata = {
"is_dir": details.is_dir,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Where is_dir was added to the details? I can't find it

Copy link
Owner Author

Choose a reason for hiding this comment

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

minio's stat_object return data like is_dir and created_at modified_at and more.
list_objects add this data to the object aswell.

@IamTugy IamTugy force-pushed the feature/write-docstings-and-pritty-the-code branch from 8384619 to 98b84d6 Compare October 5, 2020 22:21
@IamTugy IamTugy merged commit 674630e into master Oct 5, 2020
@IamTugy IamTugy deleted the feature/write-docstings-and-pritty-the-code branch October 5, 2020 22:26
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.

Change extract match function to OOP
4 participants