Coala: doctest polluting tests with TrumpScript alias ts

Created on 18 Jun 2018  路  5Comments  路  Source: coala/coala

Similar to https://github.com/coala/coala/issues/5518 , TrumpScript's alias 'ts' is causing problems with https://github.com/coala/coala/pull/5540

difficultlow importanchigh typbug

All 5 comments

We should also see if this problem is fixed in a more recent version of pytest. (The incompatible pytest plugins will need to be disabled to test using the latest version of pytest)

This is blocking a newcomer, so fairly important.

Ah, I see, Trumpscript and TypeScript have the same alias 'ts,', that is why they both are colliding. Even Language['ts'] in the doctests gives TypeScript as output instead of TrumpScript.

There are two potential solutions for this-

  1. Changing the alias name of TrumpSript in the doctests.
  2. Creating a private method above the main doctest and changing the Typescript alias name and changing it back to 'ts,' in another private method after the main doctest.

Probably best to give it a different alias, which isnt likely to ever be a real alias.

Then we need a new issue about duplicated aliases. The error & docs should explain an alias must be unique.

They also cant be modified, because they can only be allocated once. Any removal of an alias is a breakage.

Was this page helpful?
0 / 5 - 0 ratings