You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to test a new class method, that overrides its parent class method (imported from another package), while simultaneously also calling it. Something like:
setMethod("my_method", "MyClass",
function(object, arg1="", arg2="", ...) {
# do something with arg1 and arg2, producing arg3arg3<- process_args(arg1, arg2)
callNextMethod(object, arg=arg3)
})
Now to test this, I would need to mock out the parent my_method, as it tries to establish a DB connection. Any thoughts on how I need to do this?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Hi all,
I am trying to test a new class method, that overrides its parent class method (imported from another package), while simultaneously also calling it. Something like:
Now to test this, I would need to mock out the parent
my_method
, as it tries to establish a DB connection. Any thoughts on how I need to do this?Thanks in advance!
The text was updated successfully, but these errors were encountered: