Skip to content

Commit

Permalink
chore: fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
yquansah committed Dec 4, 2023
1 parent 6045e24 commit b5f4872
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion flipt-client-node/src/evaluation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ test('variant', () => {
test('boolean', () => {
const fec = new FliptEvaluationClient('default', { url: fliptUrl });

const boolean = fec.evaluateBoolean('flag_boolean', 'someentity', { fizz: 'buzz' });
const boolean = fec.evaluateBoolean('flag_boolean', 'someentity', {
fizz: 'buzz'
});

expect(boolean.error_message).toBeNull();
expect(boolean.status).toEqual('success');
Expand Down
8 changes: 6 additions & 2 deletions flipt-client-python/flipt_client_python/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ def __del__(self):
if hasattr(self, "engine") and self.engine is not None:
self.ffi_core.destroy_engine(self.engine)

def evaluate_variant(self, flag_key: str, entity_id: str, context: dict) -> VariantResult:
def evaluate_variant(
self, flag_key: str, entity_id: str, context: dict
) -> VariantResult:
response = self.ffi_core.evaluate_variant(
self.engine,
serialize_evaluation_request(
Expand All @@ -56,7 +58,9 @@ def evaluate_variant(self, flag_key: str, entity_id: str, context: dict) -> Vari

return variant_result

def evaluate_boolean(self, flag_key: str, entity_id: str, context: dict) -> BooleanResult:
def evaluate_boolean(
self, flag_key: str, entity_id: str, context: dict
) -> BooleanResult:
response = self.ffi_core.evaluate_boolean(
self.engine,
serialize_evaluation_request(
Expand Down
4 changes: 3 additions & 1 deletion flipt-client-python/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ def setUp(self) -> None:
)

def test_variant(self):
variant = self.flipt_client.evaluate_variant("flag1", "someentity", {"fizz": "buzz"})
variant = self.flipt_client.evaluate_variant(
"flag1", "someentity", {"fizz": "buzz"}
)
self.assertIsNone(variant.error_message)
self.assertEqual("success", variant.status)
self.assertEqual("flag1", variant.result.flag_key)
Expand Down

0 comments on commit b5f4872

Please sign in to comment.