Has anyone tried to unit test @resource_manager? ...
# ask-community
s
Has anyone tried to unit test @resource_manager? I don’t see any documentation on that. I can test normal flows but this one stumps me.
k
Hi @Seth Birkholz, this is the first time I’ve seen this asked. I don’t know an immadiate answer. What are you trying to test it for?
Are you using it to spin up a cluster?
s
no its just a wrapper around a database connection.
Copy code
@resource_manager
class SnowflakeConnection:
    def __init__(self, account, user, password, database, schema, warehouse, role):
I am trying to test the setup and cleanup methods in this class
k
Will have to ask the team for ideas
s
Please do. I have been successful at testing everything else but this one looks tricky.
s
This is great! Thanks for pointing it out. 🙂
👍 2