|  |  |  | @ -12,6 +12,13 @@ def given_source_label(context, label): | 
			
		
	
		
			
				
					|  |  |  |  | def given_source_path(context, source_path): | 
			
		
	
		
			
				
					|  |  |  |  |     context.source_path = source_path | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | @given('the arguments "{arguments}"') | 
			
		
	
		
			
				
					|  |  |  |  | def given_source_arguments(context, arguments): | 
			
		
	
		
			
				
					|  |  |  |  |     context.args = arguments | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     if arguments == "<empty>": | 
			
		
	
		
			
				
					|  |  |  |  |         context.args = "" | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | @when('I add the source') | 
			
		
	
		
			
				
					|  |  |  |  | def add_source(context): | 
			
		
	
		
			
				
					|  |  |  |  |     try: | 
			
		
	
	
		
			
				
					|  |  |  | @ -19,7 +26,7 @@ def add_source(context): | 
			
		
	
		
			
				
					|  |  |  |  |             context.label, | 
			
		
	
		
			
				
					|  |  |  |  |             context.source_path, | 
			
		
	
		
			
				
					|  |  |  |  |             [], | 
			
		
	
		
			
				
					|  |  |  |  |             "", | 
			
		
	
		
			
				
					|  |  |  |  |             context.args, | 
			
		
	
		
			
				
					|  |  |  |  |         ) | 
			
		
	
		
			
				
					|  |  |  |  |     except IntegrityError: | 
			
		
	
		
			
				
					|  |  |  |  |         context.exception_raised = True | 
			
		
	
	
		
			
				
					|  |  |  | @ -32,4 +39,5 @@ def path_has_added(context): | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     assert context.source.label  == context.label | 
			
		
	
		
			
				
					|  |  |  |  |     assert context.source.source.path == context.source_path | 
			
		
	
		
			
				
					|  |  |  |  |     assert context.source.args.command == context.args | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | 
 |