GithubHelp home page GithubHelp logo

Comments (4)

Dreamsorcerer avatar Dreamsorcerer commented on June 6, 2024 1

The code duplication seems to have happened when moving to using pytest-asyncio though: #19

from pytest-aiohttp.

Dreamsorcerer avatar Dreamsorcerer commented on June 6, 2024

The library isn't even imported as a user. How would this be useful?

If you're using the aiohttp fixtures, and want to annotate them in your test functions, just import from aiohttp itself. For example:
https://github.com/aio-libs/aiohttp/pull/6555/files#diff-8cadf0d03b326ef5c8ff78864d1f60294e73a78f3ffaaefaf7ef60d1a909ea7bR162

from pytest-aiohttp.

MHajoha avatar MHajoha commented on June 6, 2024

Thanks for the hint. I wasn't aware AiohttpClient was duplicated in aiohttp.pytest_plugin. What exactly is the difference between it and pytest_aiohttp.plugin then?

from pytest-aiohttp.

Dreamsorcerer avatar Dreamsorcerer commented on June 6, 2024

To be honest, I'm not even entirely sure. If you look through the commit history, you can see at one point the entire codebase was just from aiohttp.pytest_plugin import *. Not sure if pytest needs a separate package to load the plugin, or if there was another reason...

from pytest-aiohttp.

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.