diff --git a/.opencode/skills/implement-tests/SKILL.md b/.opencode/skills/implement-tests/SKILL.md index 0148e85e..ae534483 100644 --- a/.opencode/skills/implement-tests/SKILL.md +++ b/.opencode/skills/implement-tests/SKILL.md @@ -2,6 +2,7 @@ name: implement-tests description: Guidance for implementing tests given the provided described behaviors --- + # Implement Tests from Behavior Specs Use this skill when you need to implement integration and unit tests for behaviors documented in a markdown spec file. This is a structured, iterative workflow that delegates to a subagent and verifies the results. diff --git a/test/clj/auto_ap/integration/graphql.clj b/test/clj/auto_ap/integration/graphql.clj index 74a8e647..1aab31a7 100644 --- a/test/clj/auto_ap/integration/graphql.clj +++ b/test/clj/auto_ap/integration/graphql.clj @@ -67,14 +67,6 @@ (is (int? (:start result))) (is (seqable? (:journal-entries result))))))) -(deftest vendors - (testing "vendors" - (testing "it should find vendors" - (let [result (:ledger-page (:data (sut/query (admin-token) "{ ledger_page(filters: {client_id: null}) { count, start, journal_entries { id } }}")))] - (is (int? (:count result))) - (is (int? (:start result))) - (is (seqable? (:journal-entries result))))))) - (deftest transaction-rule-page (testing "it should find rules" (let [result (-> (sut/query (admin-token) "{ transaction_rule_page(client_id: null) { count, start, transaction_rules { id } }}") diff --git a/test/clj/auto_ap/integration/graphql/ledger/running_balance.clj b/test/clj/auto_ap/integration/graphql/ledger/running_balance.clj index 94676d6e..ab4207c7 100644 --- a/test/clj/auto_ap/integration/graphql/ledger/running_balance.clj +++ b/test/clj/auto_ap/integration/graphql/ledger/running_balance.clj @@ -69,8 +69,6 @@ ;; NOTE: upsert-running-balance now uses proper accounting signs: ;; asset accounts increase with debit (positive), equity accounts increase with credit (negative here) (sut/upsert-running-balance conn) - (println (d/pull (d/db conn) '[*] line-1-1)) - (is (= [10.0 60.0 210.0] (map #(pull-attr (d/db conn) :journal-entry-line/running-balance %) [line-1-1 line-2-1 line-3-1]))) (is (= [-10.0 -60.0 -210.0]