Skip to content Skip to sidebar Skip to footer
Showing posts with the label Testing

Unable To Locate Using Find Element By Link

Newbie in testing. I generated a test case using Selenium, and then exported it as a Python script.… Read more Unable To Locate Using Find Element By Link

Run Tox On Different Python Patch Versions

In short: Is there a way to have tox cycle on patch versions of python? Long: I want the tests to b… Read more Run Tox On Different Python Patch Versions

How To Test A Connexion/flask App?

I'm using the Connexion framework for Flask to build a microservice. I would like to write test… Read more How To Test A Connexion/flask App?

Should Python Unittests Be In A Separate Module?

Is there a consensus about the best place to put Python unittests? Should the unittests be included… Read more Should Python Unittests Be In A Separate Module?

Is There A Python Module For Creating Test Files Of Specific Sizes?

I have a server that has files uploaded to it. I need to profile the upload/response time for vario… Read more Is There A Python Module For Creating Test Files Of Specific Sizes?

Google App Engine Require Indexes For Tests

I just got bit by my functional tests not using the same settings as my dev_appserver. I currently… Read more Google App Engine Require Indexes For Tests

What Is A Good Way To Speed Up Test Runs Utilizing Larger Spacy Models?

I have constructed some tests relying on the en_core_web_md model. The model takes ~15 sec to load … Read more What Is A Good Way To Speed Up Test Runs Utilizing Larger Spacy Models?

Is There A Way To Sandbox Test Execution With Pytest, Especially Filesystem Access?

I'm interested in executing potentially untrusted tests with pytest in some kind of sandbox, li… Read more Is There A Way To Sandbox Test Execution With Pytest, Especially Filesystem Access?

How Can I Test If A Pytest Fixture Raises An Exception?

Use case: In a pytest test suite I have a @fixture which raises exceptions if command line options … Read more How Can I Test If A Pytest Fixture Raises An Exception?

In Pytest, How Can I Figure Out If A Test Failed? (from "request")

I'm using Selenium with PYTEST to test a site. I would like to take a screenshot of the page wh… Read more In Pytest, How Can I Figure Out If A Test Failed? (from "request")

I Got A Calender Picker. How To Select The Available Day With Selenium And Python?

the available days has a class .calendarCellOpen: table.calendario .calendarCellOpen input { } He… Read more I Got A Calender Picker. How To Select The Available Day With Selenium And Python?

Mocking File Reads Using Patch Decorator And Side_effect

I am testing a function that reads a file, does operations to the contents and returns a value depe… Read more Mocking File Reads Using Patch Decorator And Side_effect

Python 2d Array I C Using Ctypes

i'm trying to use a self written c lib to proces 2d array from python but with little success. … Read more Python 2d Array I C Using Ctypes

Selenium - Get Location After Clicking On An Anchor

I'm trying to check the fact that when I click on an anchor link, some section is really at the… Read more Selenium - Get Location After Clicking On An Anchor

Same Tests Over Many Similar Data Files

With python and unittest I have this structure of test directory: tests/ __init__.py test_001.p… Read more Same Tests Over Many Similar Data Files

Custom Django Management Command With Appended Parameters

My team runs a custom test suite pretty regularly. When we want to run the whole thing, we do ./ma… Read more Custom Django Management Command With Appended Parameters

Show Current Cursor Position In Selenium

Is there a way to show current cursor position or something like this? I have action chain that sho… Read more Show Current Cursor Position In Selenium

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 (ru… Read more How To Keep Unit Tests And Integrations Tests Separate In Pytest

Django. Create Object ManyToManyField Error

I am trying to write tests for my models. I try to create object like this: GiftEn.objects.crea… Read more Django. Create Object ManyToManyField Error

Run Tox On Different Python Patch Versions

In short: Is there a way to have tox cycle on patch versions of python? Long: I want the tests to b… Read more Run Tox On Different Python Patch Versions