Skip to content

Instantly share code, notes, and snippets.

View jakerobers's full-sized avatar
🏠
Working from home

Jake Robers jakerobers

🏠
Working from home
View GitHub Profile
[
{
'Status': 'Paid',
'Payment Date': '01/01/2020',
'Type': 'A',
'Amount': '$1000',
'Receipt Number': '1234'
},
...
]
[
'Status', 'Payment Date', 'Type', 'Amount', 'Receipt Number',
'Paid','01/01/2020','A','$1000','1234',
'Paid','02/01/2020','A','$1000','1235',
'Paid','03/01/2020','A','$1000','1236'
]
[
'Status', 'Payment Date', 'Type', 'Amount', 'Receipt Number',
'Paid','01/01/2020','A','$1000','1234',
'Paid','02/01/2020','A','$1000','1235',
'Paid','03/01/2020','A','$1000','1236'
]
| Status | Payment Date | Type | Amount | Receipt Number |
| Paid | 01/01/2020 | A | $1000 | 1234 |
| Paid | 02/01/2020 | A | $1000 | 1235 |
| Paid | 03/01/2020 | A | $1000 | 1236 |
| Status | Payment Date | Type | Amount | Receipt Number |
| Paid | 01/01/2020 | A | $1000 | 1234 |
| Paid | 02/01/2020 | A | $1000 | 1235 |
| Paid | 03/01/2020 | A | $1000 | 1236 |
def get_driver(driver_type, opts={}):
DRIVER_TYPES = { 'LOCAL': webdriver.Firefox, 'REMOTE': webdriver.Remote }
DRIVER_OPTS = {
'LOCAL': {},
'REMOTE': {
'command_executor': opts.get('command_executor'),
'desired_capabilities': opts.get('desired_capabilities'),
}
}
def get_driver(driver_type, opts={}):
DRIVER_TYPES = { 'LOCAL': webdriver.Firefox, 'REMOTE': webdriver.Remote }
DRIVER_OPTS = {
'LOCAL': {},
'REMOTE': {
'command_executor': opts.get('command_executor'),
'desired_capabilities': opts.get('desired_capabilities'),
}
}
def get_driver(driver_type, opts={}):
driver = None
if driver_type == 'LOCAL':
driver = webdriver.Firefox()
elif driver_type == 'REMOTE':
url = opts.get('DRIVER_URL')
driver = webdriver.Remote(
command_executor=url,
desired_capabilities=DesiredCapabilities.FIREFOX)
def get_driver(driver_type, opts={}):
driver = None
if driver_type == 'LOCAL':
driver = webdriver.Firefox()
elif driver_type == 'REMOTE':
url = opts.get('DRIVER_URL')
driver = webdriver.Remote(
command_executor=url,
desired_capabilities=DesiredCapabilities.FIREFOX)
import sinon from 'sinon'
import { expect } from 'chai'
import { warn } from './validate'
describe('warn', () => {
it('logs a warning', () => {
const logger = warn({ warn: sinon.spy() })
logger('some message')
expect(logger.warn).to.have.property('callCount', 1)
})