17 lines
329 B
Python
17 lines
329 B
Python
# testing imports
|
|
import pytest
|
|
|
|
# package imports
|
|
import celigo
|
|
|
|
def test_needs_all_params():
|
|
"""
|
|
Test that we need to pass in both an api key and a data directory.
|
|
"""
|
|
with pytest.raises(TypeError):
|
|
backup = celigo.BackupCeligo()
|
|
api_key = "fake"
|
|
data_dir = "fakedir"
|
|
backup = celigo.BackupCeligo(data_dir, api_key)
|
|
|