Skip to content

Instantly share code, notes, and snippets.

View cooper6581's full-sized avatar

Dustin Koupal cooper6581

  • Placerville, California
View GitHub Profile
@mock.patch.object(cell_mapping.CellMapping, '_get_by_uuid_from_db')
def test_non_formatted_url_with_base(self, mock_get):
# Make sure we just pass through the template URL if the base
# URLs are set, i.e. we don't try to format the URL to a template.
url = 'foo{'
self.flags(transport_url=url)
self.flags(connection=None, group='database')
db_mapping = get_db_mapping(transport_url=url,
database_connection=url)
mock_get.return_value = db_mapping