Skip to content

Add missing test for rope_rename.py#780

Merged
ccordoba12 merged 4 commits intopalantir:developfrom
benmezger:tests/add-missing-plugins-tests
May 9, 2020
Merged

Add missing test for rope_rename.py#780
ccordoba12 merged 4 commits intopalantir:developfrom
benmezger:tests/add-missing-plugins-tests

Conversation

@benmezger
Copy link
Copy Markdown
Contributor

This adds a missing test to plugins/rope_rename.py improving coverage.

@ccordoba12 ccordoba12 changed the title Feat: Add missing test for rope_rename.py Add missing test for rope_rename.py Apr 18, 2020
@ccordoba12 ccordoba12 modified the milestone: 0.31.10 Apr 18, 2020
@pytest.fixture
def tmp_workspace(workspace):
def create_file(name, content):
fn = os.path.join(workspace.root_path, name)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Where is the root_path of this workspace?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hey @ccordoba12 sorry for the late reply, I didn't get notified about this comment.
root_path is currently set to /private/var/folders/25/cy4pgsqn2393lvfmh420gf7h0000gn/T/pytest-of-benmezger/pytest-0/test_rope_rename0 on my machine.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is actually copied from:

def tmp_workspace(workspace):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ok, thanks for the clarification 👍

@benmezger benmezger requested a review from ccordoba12 May 9, 2020 16:25
@ccordoba12 ccordoba12 added this to the 0.32.0 milestone May 9, 2020
Copy link
Copy Markdown
Contributor

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

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

Thanks @benmezger!

@ccordoba12 ccordoba12 merged commit e78ccec into palantir:develop May 9, 2020
@benmezger benmezger deleted the tests/add-missing-plugins-tests branch May 10, 2020 02:46
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