Open jackton1 opened 3 years ago
When importing from snapshottest package this might result in confusion as the TestCase class name is used by multiple subpackages.
snapshottest
TestCase
from snapshottest import TestCase # This results in error for example in a django application.
Prevent wrong imports by letting the caller specify the unittest package explicitly in the import.
unittest
This is good, but I only want to merge it with a major version release since this is a change in the public API.
Rationale
When importing from
snapshottest
package this might result in confusion as theTestCase
class name is used by multiple subpackages.Solution
Prevent wrong imports by letting the caller specify the
unittest
package explicitly in the import.