Git Product home page Git Product logo

apiritif's People

Contributors

corvustristis avatar dimp-gh avatar greyfenrir avatar karthikeayan avatar stobe1 avatar undera avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

apiritif's Issues

Test name doesn't reflecting in report

My sample code,

class TestArtifactory(TestCase):
  def test_ldap_login(self):
    self.url = "/artifactory/webapp"
    response = target.get(self.url, headers=headers)
    response.assert_2xx()

  def test_download_artifact(self):
    self.url = "/artifactory/test-repo/Test/Test.txt"
    response = target.get(self.url, headers=headers)
    response.assert_status_code(201)

I expect test_ldap_login and test_download_artifact to show up as the test names in the report.

Allow to usage of a custom HTTP Client

Hello.

First I would like to thank you for this tools. I love using it for API testing. I am currently facing an issue deciding witch way I should test a FAST API project.

I love the lib as it has all the tooling I need arround request and assertion but I would also like to use FastAPI TestClient witch requires to be able to replace requests by the test client.

As I see, the HTTP client par is currently not configurable and forced to request. Would it be possible to enable configuring any HTTP Client provider as long as it matches the same interfaces as requests ?

Two classes doesn't show two tests in the report

import time
import unittest
from apiritif import http, transaction

target = http.target('https://jsonplaceholder.typicode.com')
target.keep_alive(True)
target.auto_assert_ok(False)
target.use_cookies(True)

class TestRequests2(unittest.TestCase):
    def test_1_single_request(self):
        target.get('/')    

class TestRequests(unittest.TestCase):
    # will produce test-case sample with one sub-sample
    def test_1_single_request(self):
        target.get('/')

Expected : TestRequests and TestRequests2 in the report
Actual : Everything goes inside TestRequests

Depends on codecov

It seems like I'm unable to install latest version of apiritif (1.1.3) due to it depending on codecov and that the authors of it decided to pull it from PyPI. They've issued a statement at https://about.codecov.io/blog/message-regarding-the-pypi-package/

It looks like apiritif is not really using codecov for anything. Searching for codecov shows it's listed in requirements.txt and .travis.yml. The latter is also trying to install it itself, so I belive adding it to the requirements.txt (that is parsed also for the requirements when installing the package) has even originally most likely been an accident.

Would it be possible to validate that codecov is indeed not a dependency to install apiritif and get a new release of it out, that does no longer list codecov as a dependency?

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.