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

Broken Pipe Error While Running Django-test With Selenium

while running django tests with selenium (no remote, no xvfb), I always get the following exception… Read more Broken Pipe Error While Running Django-test With Selenium

Flask Testing - Why Does Coverage Exclude Import Statements And Decorators?

My tests clearly execute each function, and there are no unused imports either. Yet, according to t… Read more Flask Testing - Why Does Coverage Exclude Import Statements And Decorators?

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?

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")

Python Import Error - Run Unittest

Why am I getting import error for a module I have in the project. All the packages are under the pr… Read more Python Import Error - Run Unittest

How Do You Install Pywin32 From A Binary File In Tox On Windows?

My application depends on pywin32 which I have installed in my system environment via Windows binar… Read more How Do You Install Pywin32 From A Binary File In Tox On Windows?

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

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

Online Ide For Python

Is there any web-based IDE that I can use to run quick tests? There're a dozen for PHP and some… Read more Online Ide For Python

How Can I Test My Python Module Without Installing It

I'm in the process of redesigning/refactoring my Python quantum chemistry package (pyquante). O… Read more How Can I Test My Python Module Without Installing It

How Do I Scrape ::before Element In A Website Using Selenium Python

I am trying to scrape phone number from this website using selenium. I found the class to be 't… Read more How Do I Scrape ::before Element In A Website Using Selenium Python

Trying To Input A Integer Into A File And Retrieving It As One. Python 3x

so I've been trying to learn Python and I have this little app to conduct an English test. But … Read more Trying To Input A Integer Into A File And Retrieving It As One. Python 3x

Django Test Not Getting Model Object

I am just scratching the surface of testing in Django. Here is my testing code, inside tests.py: c… Read more Django Test Not Getting Model Object

Cannot Click On Toggle With Selenium Because Of Elementnotinteractableexception

I am trying to click a toggle with Selenium Webdriver and Python but get the following exception: … Read more Cannot Click On Toggle With Selenium Because Of Elementnotinteractableexception

Selenium Change Language Browser Chrome / Firefox

I'm trying to test my website with Selenium but I don't manage to change the language of th… Read more Selenium Change Language Browser Chrome / Firefox

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 To Write A Test Case For This Django Custom Tag

Django version : v1.10 Python : 3.5 (this is important as it turns out .. look at the answer) I fo… Read more How To Write A Test Case For This Django Custom Tag

Python Unittest: Fail Due To Import From Same Folder

the question seems pretty trivial, but I could not find a single answer to it online. Heres my setu… Read more Python Unittest: Fail Due To Import From Same Folder