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

Update test_excel #316

Conversation

junkmd
Copy link
Collaborator

@junkmd junkmd commented Jun 26, 2022

In #298, environment-specific-tests are skipped.

But there are def setUpModule;raise SkipTest(... in some modules.
In this way, skipped testcase names are not displayed even if using -v option.

With this change, in test_excel, skipped testcase name and reasons are displayed in console.

for example:

# with non-excel-installed environment
test (test_excel.Test_EarlyBind) ... skipped 'This depends on Excel.'
test (test_excel.Test_LateBind) ... skipped 'This depends on Excel.'
# with excel-installed environment
test (test_excel.Test_EarlyBind) ... skipped 'There is difference of `Range.Value` behavior between Python >= 3.8.x and Python <= 3.7.x.'
test (test_excel.Test_LateBind) ... ok

See #212 (comment) for details of @unittest.skip("There is difference of ...

@junkmd junkmd force-pushed the skipped_testcase_and_reasons_are_displayed_in_console branch from 7bc4eb9 to 5551006 Compare July 31, 2022 07:39
@vasily-v-ryabov vasily-v-ryabov added this to the 1.1.13 milestone Jul 31, 2022
vasily-v-ryabov added a commit to vasily-v-ryabov/pywinauto that referenced this pull request Jul 31, 2022
@vasily-v-ryabov vasily-v-ryabov merged commit f4d4a5e into enthought:master Aug 1, 2022
@junkmd junkmd deleted the skipped_testcase_and_reasons_are_displayed_in_console branch August 1, 2022 08: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.

2 participants