Giter Site home page Giter Site logo

Comments (3)

CleanCut avatar CleanCut commented on July 26, 2024

Here's the loading strategies and what they end up with:

DISCOVER (package name [directory]) - Does not include package name
DISCOVER (package.subpkg [directory]) - Does not include package name
DISCOVER (installed package name [directory]) - Does not include package name

DISCOVER (. outside package [current directory]) - Includes package name
DOTTED OBJECT (package.module [file]) -Includes package name
FILE (module filepath [file]) - Includes package name

from green.

CleanCut avatar CleanCut commented on July 26, 2024

I altered one of the existing loader unit tests to fail for this condition.

The DOTTED OBJECT strategy won't load a package by name, so I can't just switch to that instead. I'm going to have to read the unittest source and see if there's someway to influence it. If there's not, then I'm just going to have to reimplement discovery myself.

On the bright side, that would enable me to implement more features (like treating bare functions as tests if I want to). On the other hand, it's a lot of functionality to rewrite to fix a small (but important) issue.

from green.

CleanCut avatar CleanCut commented on July 26, 2024

Okay, this is bugging me. A lot. I have tried to solve this problem three different times in three different ways, and hit a dead end on all of them.

The built-in unittest stuff is a mess. Sorry python, but it's true. I'm going to start an experimental branch to start writing my own test discovery. Maybe along the way I'll discover how to fix it without my own discovery.

from green.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.