[Question]How do I write test code using pytest? #1944
              
                Unanswered
              
          
                  
                    
                      NaotoTakata
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 2 comments 1 reply
-
| I am confronted with the same problem and didn’t find a solution. What doesn’t work is the use of playwright or something similar because they work with frameworks based on node.js. | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            -
| Hello, I don't know if pytest can be used to perform tests in Flet, however, in the CONTRIBUTING.md file there is a section that talks about how to perform tests on the fork created to contribute, I leave the document here so you can view it. Greetings. | 
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Question
Hi flet community
I would like to ask how to write test code for a Flet application using pytest.
I did a quick search, but there's not a lot of information about it.
Let's say my application is as follows:
I want to make sure that
self.message.valueis "Water" when you run the app, and after clickingself.btn,self.message.valueshould be "Coffee."Code sample
Error message
No response
------------------------------------------------------
Beta Was this translation helpful? Give feedback.
All reactions