Skip to content

Commit

Permalink
fix: test cases based on previous updates!
Browse files Browse the repository at this point in the history
- The summary type was added in other commits.
- The COMMITED relationships typo was fixed on staging database.
  • Loading branch information
amindadgar committed Mar 13, 2024
1 parent d52661e commit 9e1884b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ def test_transform_daily_summary_to_document(self):
expected_documents = [
Document(
text="Summary 1",
metadata={"date": "2023-01-01", "channel": None, "thread": None},
metadata={"date": "2023-01-01", "type": "day"},
),
Document(
text="Summary 2",
metadata={"date": "2023-01-02", "channel": None, "thread": None},
metadata={"date": "2023-01-02", "type": "day"},
),
Document(
text="Summary 3",
metadata={"date": "2023-01-03", "channel": None, "thread": None},
metadata={"date": "2023-01-03", "type": "day"},
),
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def test_get_single_commit_single_repo_no_from_date(self):
session.execute_write(
lambda tx: tx.run(
"""
CREATE (co:Commit)<-[:COMMITED]-(user:GitHubUser {login: "author #1"})
CREATE (co:Commit)<-[:COMMITTED]-(user:GitHubUser {login: "author #1"})
SET
co.`commit.author.name` = "Author#1",
co.`commit.message` = "Issue #1 is resolved!",
Expand Down Expand Up @@ -68,7 +68,7 @@ def test_get_single_commit_single_repo_with_from_date(self):
session.execute_write(
lambda tx: tx.run(
"""
CREATE (co:Commit)<-[:COMMITED]-(user:GitHubUser {login: "author #1"})
CREATE (co:Commit)<-[:COMMITTED]-(user:GitHubUser {login: "author #1"})
SET
co.`commit.author.name` = "Author#1",
co.`commit.message` = "Issue #1 is resolved!",
Expand Down Expand Up @@ -108,7 +108,7 @@ def test_get_multiple_commit_multi_repo_with_from_date_filter(self):
session.execute_write(
lambda tx: tx.run(
"""
CREATE (co:Commit)<-[:COMMITED]-(:GitHubUser {login: "author #1"})
CREATE (co:Commit)<-[:COMMITTED]-(:GitHubUser {login: "author #1"})
SET
co.`commit.author.name` = "Author#1",
co.`commit.message` = "Issue #1 is resolved!",
Expand All @@ -120,7 +120,7 @@ def test_get_multiple_commit_multi_repo_with_from_date_filter(self):
co.`commit.author.date` = "2024-01-01T10:23:50Z",
co.`commit.verification.reason` = "invalid"
CREATE (co2:Commit)<-[:COMMITED]-(:GitHubUser {login: "author #2"})
CREATE (co2:Commit)<-[:COMMITTED]-(:GitHubUser {login: "author #2"})
SET
co2.`commit.author.name` = "Author#2",
co2.`commit.message` = "Issue #2 is resolved!",
Expand All @@ -132,7 +132,7 @@ def test_get_multiple_commit_multi_repo_with_from_date_filter(self):
co2.`commit.author.date` = "2023-01-01T10:23:50Z",
co2.`commit.verification.reason` = "invalid"
CREATE (co3:Commit)<-[:COMMITED]-(:GitHubUser {login: "author #3"})
CREATE (co3:Commit)<-[:COMMITTED]-(:GitHubUser {login: "author #3"})
SET
co3.`commit.author.name` = "Author#3",
co3.`commit.message` = "Issue #3 is resolved!",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def test_get_single_commit_single_repo_no_from_date(self):
session.execute_write(
lambda tx: tx.run(
"""
CREATE (co:Commit)<-[:COMMITED]-(user:GitHubUser {login: "author #1"})
CREATE (co:Commit)<-[:COMMITTED]-(user:GitHubUser {login: "author #1"})
SET
co.`commit.author.name` = "Author#1",
co.`commit.message` = "Issue #1 is resolved!",
Expand Down Expand Up @@ -70,7 +70,7 @@ def test_get_single_commit_single_repo_with_from_date(self):
session.execute_write(
lambda tx: tx.run(
"""
CREATE (co:Commit)<-[:COMMITED]-(user:GitHubUser {login: "author #1"})
CREATE (co:Commit)<-[:COMMITTED]-(user:GitHubUser {login: "author #1"})
SET
co.`commit.author.name` = "Author#1",
co.`commit.message` = "Issue #1 is resolved!",
Expand Down

0 comments on commit 9e1884b

Please sign in to comment.