Skip to content

Conversation

@HemangChothani
Copy link
Collaborator

Towards[8989]

List of changes:

  1. create_table_cmek
  2. update_table_cmek
  3. extract_table.py
  4. extract_table_compressed
  5. extract_table_json

Copy link
Collaborator

@IlyaFaer IlyaFaer left a comment

Choose a reason for hiding this comment

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

I'm little bit lost in all the rules for this refactoring, but LGTM
Only too many empty lines I think



def test_create_table_cmek(capsys, random_table_id, kms_key_name):

Copy link
Collaborator

Choose a reason for hiding this comment

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

Why an empty line?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@IlyaFaer just following the structure and rules as , all files has one blank line after method declaration and pep8 for two blank line between import and method declaration.

out, _ = capsys.readouterr()
assert "Exported {} ".format(table_with_data_id) in out
assert blob.exists
assert blob.size > 0
Copy link
Collaborator

Choose a reason for hiding this comment

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

In fact you can write just assert blob.size as it's not going to be negative, and it'll give True for all positive numbers

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@IlyaFaer Ok, but i i didn't change that assert , i keep as it is as it was before.

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.

4 participants