This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
'Status': 'Paid', | |
'Payment Date': '01/01/2020', | |
'Type': 'A', | |
'Amount': '$1000', | |
'Receipt Number': '1234' | |
}, | |
... | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
'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' | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
'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' | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'), | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'), | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
}) |