mirror of https://github.com/peter4431/rq.git
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			26 lines
		
	
	
		
			509 B
		
	
	
	
		
			Python
		
	
			
		
		
	
	
			26 lines
		
	
	
		
			509 B
		
	
	
	
		
			Python
		
	
| import unittest
 | |
| from blinker import signal
 | |
| from redis import Redis
 | |
| 
 | |
| testconn = Redis()
 | |
| 
 | |
| class RQTestCase(unittest.TestCase):
 | |
|     def setUp(self):
 | |
|         super(RQTestCase, self).setUp()
 | |
|         testconn.flushdb()
 | |
|         signal('setup').send(self)
 | |
| 
 | |
|     def tearDown(self):
 | |
|         signal('teardown').send(self)
 | |
|         testconn.flushdb()
 | |
|         super(RQTestCase, self).tearDown()
 | |
| 
 | |
| 
 | |
| class TestRQ(RQTestCase):
 | |
|     def test_math(self):
 | |
|         assert 1 + 2 == 3
 | |
| 
 | |
| 
 | |
| if __name__ == '__main__':
 | |
|     unittest.main()
 |