Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update test database #126

Merged
merged 3 commits into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions core/models/channels_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ func TestChannels(t *testing.T) {
// add some tel specific config to channel 2
rt.DB.MustExec(`UPDATE channels_channel SET config = '{"matching_prefixes": ["250", "251"], "allow_international": true}' WHERE id = $1`, testdata.VonageChannel.ID)

// make twitter channel have a parent of twilio channel
rt.DB.MustExec(`UPDATE channels_channel SET parent_id = $1 WHERE id = $2`, testdata.TwilioChannel.ID, testdata.TwitterChannel.ID)

oa, err := models.GetOrgAssetsWithRefresh(ctx, rt, 1, models.RefreshChannels)
require.NoError(t, err)

Expand All @@ -37,7 +34,6 @@ func TestChannels(t *testing.T) {
Roles []assets.ChannelRole
Prefixes []string
AllowInternational bool
Parent *assets.ChannelReference
}{
{
testdata.TwilioChannel.ID,
Expand All @@ -48,7 +44,6 @@ func TestChannels(t *testing.T) {
[]assets.ChannelRole{"send", "receive", "call", "answer"},
nil,
false,
nil,
},
{
testdata.VonageChannel.ID,
Expand All @@ -59,7 +54,6 @@ func TestChannels(t *testing.T) {
[]assets.ChannelRole{"send", "receive"},
[]string{"250", "251"},
true,
nil,
},
{
testdata.TwitterChannel.ID,
Expand All @@ -70,7 +64,6 @@ func TestChannels(t *testing.T) {
[]assets.ChannelRole{"send", "receive"},
nil,
false,
assets.NewChannelReference(testdata.TwilioChannel.UUID, "Twilio"),
},
}

Expand Down
Binary file modified mailroom_test.dump
Binary file not shown.