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

Attributeerror: 'loginpage' Object Has No Attribute 'driver'

I have a base class. Inheriting base class, login.py runs without any problem. But when I run Compa… Read more Attributeerror: 'loginpage' Object Has No Attribute 'driver'

Nosetest And Unittest.expectedfailures

I am currently testing my website with Selenium, Python and nosetests. Everything works fine for su… Read more Nosetest And Unittest.expectedfailures

How To Test If Email Was Sent After Executing Celery Task

I'm using Django 1.10 and Celery 4.1 I have a shared_task which sends an email to the user. # m… Read more How To Test If Email Was Sent After Executing Celery Task

Mocking A Socket Connection In Python

I am trying to write unit tests for a class in python. The class opens a tcp socket on init. I am t… Read more Mocking A Socket Connection In Python

Can't Get Pytest To Understand Command-line Arguments On Setups

So I have been trying to get pytest to run selenium tests on different environments based on some c… Read more Can't Get Pytest To Understand Command-line Arguments On Setups

How Do I Test That I'm Calling Pickle.dump() Correctly?

I want to test this method: class Data(object): def save(self, filename=''): i… Read more How Do I Test That I'm Calling Pickle.dump() Correctly?