Skip to main content

All Questions

0 votes
0 answers
23 views

Dfficulties getting my first Integration Test right with Python

When executing my integration test, the way it is currently coded, I get an AssertionError. Unfortunately I can´t figure out as to why that could be just yet. Also a question: Is the choosen Assertion ...
Florian Eppe's user avatar
0 votes
1 answer
268 views

Dynamically reuse integration testing scenarios in pytest

I have a set of classes for which each property and method must be tested. Something like datasets = [{ "klass": MyClass1, "a": 1, "c": 3, }, { "...
Some Guy's user avatar
  • 672
2 votes
1 answer
5k views

Integration testing FastAPI with user authentication

I am trying to write some integration tests for my FastAPI endpoints and am not sure what the best solution is to testing the endpoints that require a user to be logged in. I am following the FastAPI ...
rick_grimes's user avatar
0 votes
1 answer
119 views

Consistency checks in dbt Cloud

The goal is to compare the data in the dataset source with the data after cleaning, modelling and ingesting it into the data warehouse and send an alert in case of mismatch. Is this possible with dbt ...
Zoghlami TAHER's user avatar
0 votes
1 answer
1k views

Using moto to communiate with server

I'm trying to use moto to implement integration testing and trying to test some custom resources to be implemented with cloudformation. I'm using the example provided in the github page. I've slightly ...
Lukasz's user avatar
  • 2,576
0 votes
0 answers
20 views

Interference-free integration tests on a build server

I have been facing a problem for several months now where I did not yet find a satisfactory solution to. In the system I am working with, build jobs from various pipelines are all executed on the same ...
lo tolmencre's user avatar
  • 3,894
0 votes
0 answers
321 views

Writing Integration Tests for gRPC in Python

our backend is a bunch of gRPC microservices that talk to each other, and I want to write integration tests against each of the services. My plan was as follows: Set up a python unittest similar to ...
de1337ed's user avatar
  • 3,263
5 votes
1 answer
3k views

Test of sending & receiving message for Azure Service Bus Queue

I would like to write an integration test checking connection of the Python script with Azure Service Bus queue. The test should: send a message to a queue, confirm that the message landed in the ...
kaksat's user avatar
  • 729
0 votes
0 answers
573 views

Upload and process a file in a MaterializeCSS form with Selenium

Html of the form: <form action="" method="post" enctype="multipart/form-data"><input type="hidden" name="csrfmiddlewaretoken" value="...
ipaleka's user avatar
  • 3,877
1 vote
3 answers
167 views

Testing workflow using parameterized test or separate test

How to test workflow - using separate test or parameterized test ? I have workflow like this A -> B -> c -> D -> E -->Z User can skip any step between A and Z but not A and Z. If I have to write ...
Neel S's user avatar
  • 155
1 vote
2 answers
2k views

POST multiple files using Django test client in same request

I am trying to build some tests for uploads on my Django site. It allows multiple files to be uploaded so I need to test when multiple files are uploaded. Testing one file works great: from django....
Marc LaBelle's user avatar
12 votes
1 answer
28k views

Integration test in python

I have a python project that I want to test. I already have unit test with unittest but I need to do integration tests. For that, I have two applications: the real one that I have to test, and a "...
iAmoric's user avatar
  • 1,927
79 votes
3 answers
44k views

How to keep Unit tests and Integrations tests separate in pytest

According to Wikipedia and various articles it is best practice to divide tests into Unit tests (run first) and Integration tests (run second), where Unit tests are typically very fast and should be ...
Tom Malkin's user avatar
  • 2,194
0 votes
1 answer
428 views

What to do when database fixture teardown fails in testing?

I am working on testing database accessor methods using a DB API2 methods in Python with Pytest. Automated testing is new to me and I can't seem to figure out what should be done in the case of ...
heretoinfinity's user avatar
1 vote
1 answer
21 views

Can I use part of the implementation to build test expectation?

Let's suppose that I use build_help_message many times throughout my application and it returns a big dictionary which contains text and attachments which I need to send using Client library. Is it ...
ryche's user avatar
  • 2,054

15 30 50 per page