New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Workbook.set_mock_caller() method #129

Closed
fzumstein opened this Issue Jan 2, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@fzumstein
Member

fzumstein commented Jan 2, 2015

Possibly wrap in something like Workbook.set_mock_caller(...):

def my_macro():
    wb = Workbook.caller()
    Range('A1').value = 1

if __name__ == '__main__':
    Workbook.set_mock_caller('/path/file.xlsm')

    my_macro()

@fzumstein fzumstein added the docs label Jan 2, 2015

@fzumstein fzumstein added this to the v0.3.1 milestone Jan 2, 2015

@fzumstein fzumstein changed the title from Change debugging setup recommendation to Add Workbook.mock_caller method Jan 2, 2015

@fzumstein fzumstein added enhancement and removed docs labels Jan 2, 2015

@fzumstein fzumstein changed the title from Add Workbook.mock_caller method to Add Workbook.set_mock_caller() method Jan 2, 2015

@fzumstein fzumstein closed this in d7283cf Jan 7, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment