I'd still prefer not to see conf imported here... Change the default to None and have your tests pass the provider... it is much cleaner.