41 lines
1.5 KiB
Gherkin
41 lines
1.5 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
|
|
|
|
Scenario: Create tracker when authenticate method raises exception
|
|
Given a temporary credentials directory
|
|
Given credentials that cause authentication to raise exception
|
|
And a valid spreadsheet ID
|
|
When I call create_tracker with these credentials
|
|
Then create_tracker should handle the exception
|
|
And return None
|
|
|