Files
dataset-uploader/features/google_sheets_tracker/create_tracker_function.feature
T

33 lines
1.1 KiB
Gherkin

Feature: Tracker Creation Function
As a developer
I want to create trackers easily
So that I can use them consistently
Scenario: Create tracker with all parameters
Given a temporary credentials directory
Given valid service account credentials
And a valid spreadsheet ID
When I call create_tracker with all parameters
Then the tracker should be created successfully
Scenario: Create tracker without spreadsheet ID
Given a temporary credentials directory
When I call create_tracker without spreadsheet ID
Then the tracker should be None
Scenario: Create tracker with authentication failure
Given a temporary credentials directory
Given invalid service account credentials
And a valid spreadsheet ID
When I call create_tracker with credentials path
Then the tracker should be None
Scenario: Create tracker with custom worksheet name
Given a temporary credentials directory
Given valid service account credentials
And a valid spreadsheet ID
And a custom worksheet name "CustomSheet"
When I call create_tracker with worksheet name
Then the tracker should use the custom worksheet