Can't create Python unit tests in Teams for Educatio

Bug description:
When I create a Python project in Teams for Education, I cannot create unit tests.

Expected vs Current Behavior:
Expected behaviour: If I create a Python project in Teams for Education I would expect to be able to create unit tests, since this is one of the languages for which Replit supports such tests, and I have always been able to create Python unit tests in the past.

Actual behaviour. In the last few days I have found that if I create a Python project and open the Tests tool, I see a message saying that unit tests are not supported. I have also found that if I share a Python project for which I had previously created a unit tests, then when it is added to a new team the unit tests are not accessible.

Steps to reproduce:

  1. Go to any team in Teams for Education
  2. Create a new Python project
  3. Open the tests tool

Bug appears at this link:

Screenshot(s)/Screen Recording:

Browser/OS/Device: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0

Replit Profile:

1 Like

This is a bug that the replit staff say they are going to fix.
In the meantime, there is a workaround for Unit Tests (shown below), and there is also a workaround for Input output Tests.

1 Like

Thanks, that worked. Replit Ask renders your original post in a slightly irritating way here because it omits the line break that was in that original post. The text in the .replit file has to be

language = "python3"
1 Like

@DSuttonBrookes Click the arrow down button on the quote to see the full code with the markdown.

1 Like