[Tutor] problem with pytest
alexkleider
alexkleider at protonmail.com
Mon Dec 28 20:34:27 EST 2020
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday, December 28, 2020 1:43 PM, Dennis Lee Bieber <wlfraed at ix.netcom.com> wrote:
> Please find a different means to post -- Python is highly dependent
> upon indentation and your posting method has stripped out all leading
> indentation.
My apologies, to be sure. I've recently switched to a different mail provider, and although all the indentation looks fine when I send, it appears not to be so upon arrival. Will have to switch back.
> def test_get_datestamp_w_valid_datetime_params():
>
> has NO input arguments, so I would assume the decorator is unable to
> formulate invocations of the function.
>
> Perhaps
>
> def test_get_datestamp_w_valid_datetime_params(date_obj, expected):
>
> would resolve the problem?
>
It does indeed! I looked at that for you wouldn't believe how long without seeing the problem which now that you've pointed it out is so obvious.
Thank you ever so much.
Alex
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Wulfraed Dennis Lee Bieber AF6VN
> wlfraed at ix.netcom.com http://wlfraed.microdiversity.freeddns.org/
>
>
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
More information about the Tutor
mailing list