ScreenPyHQ / screenpy

Screenplay pattern base for Python automated UI test suites.
MIT License
27 stars 3 forks source link

Logging <None> a bit more than expected #111

Closed bandophahita closed 9 months ago

bandophahita commented 10 months ago

With the latest merge of #105 pacing seems to be logging => <None> more than expected.

Marcel tries to see if all of 4 tests pass, eventually.
    Marcel sees if all of the following 4 tests pass:
        Marcel sees if the username field is clickable.
            => <None>
        Marcel sees if the password field is clickable.
            => <None>
        Marcel sees if the sign-in button is clickable.
            => <None>
        Marcel sees if the forgot password button is clickable.
            => <None>
        => <None>
bandophahita commented 10 months ago

It would appear that from __future__ import annotations changes the behavior of annotations to where function_should_log_none triggers incorrectly.