cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Certifications
Join dynamic discussions on Databricks certifications within the Community. Exchange insights, tips, and experiences to help prepare for certification exams and validate your expertise in data engineering, analytics, and machine learning.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

DevOps Fundamentals: 08 - Creating and Executing Unit Tests: Instructions doesn't match code

Daniel_B
Contributor

Instructions: 

To execute pytest within Databricks complete the following:

  • sys.dont_write_bytecode = True - By default, Python generates .pyc bytecode files in a pycache directory. Setting it to True prevents this, which is useful in read-only environments.

Code in cell directly underneath:

  • sys.dont_write_bytecode = False

Thanks. I hereby claim my $1000000 bug bounty. You're welcome.

 

0 REPLIES 0