Code Monkey home page Code Monkey logo

Comments (3)

ianthetechie avatar ianthetechie commented on May 10, 2024

Update: Potentially false alarm. I may actually be kicking off a long-running process somewhere in my database code. Stand by...

from hug.

ianthetechie avatar ianthetechie commented on May 10, 2024

Yup; the py.test hang was my bad. My logging happens out-of-process via multiprocessing, and I was not tearing this down. Sorry for the false alarm. However, I still am curious about the need to pass your_module.__hug__ rather than just your_module to hug.test.get.

from hug.

timothycrosley avatar timothycrosley commented on May 10, 2024

Hi @ianthetechie,The first issue was an unintended regression in the development branch. I've fixed it so that now you can pass in either an API instance or a module and it will work.
The initial reason for the change was as pointed towards to simplify internal testing code, as
hug.test.get(sys.modules[__name__], ...) is less clear then hug.test.get(hug.API(__name__), ...), now both are supported.

Thanks!

~Timothy

from hug.

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.