Wrapped error with setup_databases for pytest-django

After I added a new class to my models, I am unable to run my tests in my server. The problem is the error message seems to be wrapped and doesn't provide further information about the error. As...

Insert json into postgres as part of celery task

I am new to Django and Celery. high level: I am working on a Django application. From an admin page uses will submit Requests (jobs). Those Requests will get sent to Redis. Celery will then poll...

Django JSONFIeld (.objects.create) data is not getting inserted

I am new to django / postgres. I have created a JSONField model, by following along with the documentation. In this instance I am attempting to store a json file in psql. class...

pytest-html Customizing Result table with output from test results

I am trying to do API automation using pytest. I want to include status_code as one of the columns in the report html generated using pytest-html. I collected the status_code in one variable in...

Displaying custom Summary at the end of Pytest run

I am trying to add a custom display of data of the test runs that occured during my pytest execution. Instead of something like : --------------- 3 passed in 30 seconds ---------------- at the...

How to generate a useful pytest-bdd test report?

I am using pytest-bdd and want to generate a test report where the Given, When, Then steps are clearly shown and in the case of a failure, it shows you the error. I have installed pytest-html and...

ANSI colour text not displayed in pytest-html report

In pytest html report, the ANSI colour text is not displayed correctly. But in console, I can see the output with out any issue.Please see my conftest.py and let me know if I have to make any...

when I try python3 version it does not work as a command

I have the following docker file: FROM ubuntu:latest RUN apt-get update \ && apt-get install -y python3-pip python3-dev \ && cd /usr/local/bin \ && ln -s /usr/bin/python3 python3 \ &&...

Pytest: How to redirect logs to console and tmp file created using tmp_path fixture

I am writing one script using pytest framework, where I need to redirect logs to console as well as temp file created by using fixture(tmp_path). I have written below code, file is getting...

Database is cleaned up after each test in pytest-django

What I am trying to achieve. I am testing rest API in Django project. I want to create test class with test functions that are related (each following test function relies on previous one) - first...

Allure Report unknown unknown - NoN%

I am a newbie to allure and Pytest. I have created test cases in Ppytest framework. For reporting, I am using allure. when I execute the allure serve command report shown as NoN%. Is there any...

Add stdout of subprocess to JSON report if test case fails

I'm investigating methods of adding to the JSON report generated by either pytest-json or pytest-json-report: I'm not hung up on either plugin. So far, I've done the bulk of my evaluation using...

Pytest crashes when using json-report and xdist plugins together

I am having an issue with pytest-json-report and pytest-xdist plugins working togehter. Basically, the tests run smoothly when started with these two separatley, so from functional point of view,...

How to apply format to step name in allure json result file

I have next scenario: Scenario: Add new user admin with valid data When I visit "User" page And click "Add user" button And specify "{random_name}" as admin name And specify...

dockerpy not able to connect to docker daemon inside bit bucket container

I have the below simple script which is basically to test whether https://github.com/docker/docker-py is able to run commands inside bitbucket containers: import docker CLIENT =...