mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	test_typing: Replace 'private' with 'direct'.
This commit replaces the keyword 'private' with 'direct'. 'pm' has been changed to 'direct message' to be more verbose.
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							8d8b6ef156
						
					
				
				
					commit
					39ec5b9f66
				
			@@ -16,7 +16,7 @@ class TypingValidateOperatorTest(ZulipTestCase):
 | 
			
		||||
        result = self.api_post(sender, "/api/v1/typing", params)
 | 
			
		||||
        self.assert_json_error(result, "Missing 'op' argument")
 | 
			
		||||
 | 
			
		||||
    def test_invalid_parameter_pm(self) -> None:
 | 
			
		||||
    def test_invalid_parameter_direct_message(self) -> None:
 | 
			
		||||
        """
 | 
			
		||||
        Sending typing notification with invalid value for op parameter fails
 | 
			
		||||
        """
 | 
			
		||||
@@ -50,9 +50,9 @@ class TypingMessagetypeTest(ZulipTestCase):
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class TypingValidateToArgumentsTest(ZulipTestCase):
 | 
			
		||||
    def test_empty_to_array_pms(self) -> None:
 | 
			
		||||
    def test_empty_to_array_direct_messages(self) -> None:
 | 
			
		||||
        """
 | 
			
		||||
        Sending pms typing notification without recipient fails
 | 
			
		||||
        Sending dms typing notification without recipient fails
 | 
			
		||||
        """
 | 
			
		||||
        sender = self.example_user("hamlet")
 | 
			
		||||
        result = self.api_post(sender, "/api/v1/typing", {"op": "start", "to": "[]"})
 | 
			
		||||
@@ -131,7 +131,7 @@ class TypingValidateToArgumentsTest(ZulipTestCase):
 | 
			
		||||
        self.assert_json_error(result, "Invalid stream ID")
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class TypingHappyPathTestPMs(ZulipTestCase):
 | 
			
		||||
class TypingHappyPathTestDirectMessages(ZulipTestCase):
 | 
			
		||||
    def test_valid_type_and_op_parameters(self) -> None:
 | 
			
		||||
        operator_type = ["start", "stop"]
 | 
			
		||||
        sender = self.example_user("hamlet")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user