Skip to content

Commit a19326a

Browse files
committed
test and sample headers
1 parent ca8b856 commit a19326a

15 files changed

+25
-0
lines changed

samples/feature_flag_sample.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Licensed under the MIT License. See License.txt in the project root for
44
# license information.
55
# -------------------------------------------------------------------------
6+
"""Sample demonstrating basic feature flag usage."""
67

78
import json
89
import os

samples/feature_flag_with_azure_app_configuration_sample.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Licensed under the MIT License. See License.txt in the project root for
44
# license information.
55
# --------------------------------------------------------------------------
6+
"""Sample demonstrating feature flags with Azure App Configuration."""
67

78
from time import sleep
89
import os

samples/feature_variant_sample.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Licensed under the MIT License. See License.txt in the project root for
44
# license information.
55
# --------------------------------------------------------------------------
6+
"""Sample demonstrating feature variants."""
67

78
import json
89
import os

samples/feature_variant_sample_with_targeting_accessor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Licensed under the MIT License. See License.txt in the project root for
44
# license information.
55
# --------------------------------------------------------------------------
6+
"""Sample demonstrating feature variants with a targeting accessor."""
67

78
import json
89
import os

samples/feature_variant_sample_with_telemetry.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Licensed under the MIT License. See License.txt in the project root for
44
# license information.
55
# --------------------------------------------------------------------------
6+
"""Sample demonstrating feature variants with telemetry."""
7+
68
import json
79
import os
810
import sys

samples/quarty_sample.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Licensed under the MIT License. See License.txt in the project root for
44
# license information.
55
# -------------------------------------------------------------------------
6+
"""Sample demonstrating Quart web app with feature management."""
67

78
import uuid
89
import os

samples/random_filter.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Licensed under the MIT License. See License.txt in the project root for
44
# license information.
55
# -------------------------------------------------------------------------
6+
"""Sample custom feature filter using random evaluation."""
7+
68
import random
79
from featuremanagement import FeatureFilter
810

tests/test_default_feature_flags.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Licensed under the MIT License. See License.txt in the project root for
44
# license information.
55
# --------------------------------------------------------------------------
6+
"""Tests for built-in feature filters."""
7+
68
import unittest
79
import pytest
810
from featuremanagement import FeatureManager, TargetingContext

tests/test_default_feature_flags_async.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Licensed under the MIT License. See License.txt in the project root for
44
# license information.
55
# --------------------------------------------------------------------------
6+
"""Async tests for built-in feature filters."""
7+
68
from unittest import IsolatedAsyncioTestCase
79
import pytest
810
from featuremanagement.aio import FeatureManager

tests/test_feature_manager.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Licensed under the MIT License. See License.txt in the project root for
44
# license information.
55
# --------------------------------------------------------------------------
6+
"""Tests for the synchronous FeatureManager."""
7+
68
import unittest
79
import pytest
810
from featuremanagement import FeatureManager, FeatureFilter

0 commit comments

Comments
 (0)