Best Python code snippet using localstack_python
publisher.py
Source:publisher.py
...134 self._buffer_thread = None135 self.force_tracking = False # allow class to ignore all other tracking config136 self.tracking_disabled = False # disables tracking if global config would otherwise track137 @property138 def is_tracking_disabled(self):139 if self.force_tracking:140 return False141 # don't track if event tracking is disabled globally142 if config.DISABLE_EVENTS:143 return True144 # don't track for internal test runs (like integration tests)145 if config.is_env_true(constants.ENV_INTERNAL_TEST_RUN):146 return True147 if self.tracking_disabled:148 return True149 return False150 def _do_flush(self):151 if self.tracking_disabled:152 # flushing although tracking has been disabled most likely means that _do_start_retry...
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!